Skip to content

Commit

Permalink
build: copy resource.h to generated electron.rc
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Oct 22, 2022
1 parent f7325b9 commit d7cd709
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions BUILD.gn
Expand Up @@ -338,11 +338,16 @@ templated_file("electron_win_rc") {
deps = [ ":electron_version_args" ]

template = "build/templates/electron_rc.tmpl"
output = "$target_gen_dir/electron.rc"
output = "$target_gen_dir/win-resources/electron.rc"

args_files = get_target_outputs(":electron_version_args")
}

copy("electron_win_rc_header") {
sources = [ "shell/browser/resources/win/resource.h" ]
outputs = [ "$target_gen_dir/win-resources/{{source_file_part}}" ]
}

templated_file("electron_version_file") {
deps = [ ":electron_version_args" ]

Expand All @@ -352,6 +357,13 @@ templated_file("electron_version_file") {
args_files = get_target_outputs(":electron_version_args")
}

group("electron_win32_resources") {
deps = [
":electron_win_rc",
":electron_win_rc_header",
]
}

action("electron_fuses") {
script = "build/fuses/build.py"

Expand Down Expand Up @@ -1225,7 +1237,7 @@ if (is_mac) {
":default_app_asar",
":electron_app_manifest",
":electron_lib",
":electron_win_rc",
":electron_win32_resources",
":packed_resources",
"//components/crash/core/app",
"//content:sandbox_helper_win",
Expand Down Expand Up @@ -1259,7 +1271,7 @@ if (is_mac) {

if (is_win) {
sources += [
"$target_gen_dir/electron.rc",
"$target_gen_dir/win-resources/electron.rc",
"shell/browser/resources/win/resource.h",
]

Expand Down

0 comments on commit d7cd709

Please sign in to comment.