-
Notifications
You must be signed in to change notification settings - Fork 610
[Windows] [GN] Windows GN Builds #191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
4105878
Initial Windows GN build
CallumIddon 7276950
Merge remote-tracking branch 'origin/master' into windows-gn
CallumIddon 7222114
Add flutter_desktop_embedding namespace
CallumIddon 7071072
[windows] [gn] Add namespaces to example embedder
CallumIddon 661d449
Merge branch 'master' into windows-gn
CallumIddon ff7c6bb
Update to master
CallumIddon 01edbec
Remove unnecessary libraries
CallumIddon 3419579
Format fix
CallumIddon 027eaf9
PR Feedback
CallumIddon 4eb657e
Format fix
CallumIddon a252f24
Merge branch 'master' into windows-gn
CallumIddon 79408bb
[Windows] [GN] Post #161
CallumIddon 7c10308
[Windows] [GN] Force debug build
CallumIddon 532ad74
Revert Removal of VS Static Library Builds
CallumIddon eb44258
Fix VS Filters
CallumIddon 4b904d8
Merge branch 'master' into windows-gn
CallumIddon 8f45a31
index on windows-gn: 4b904d8 Merge branch 'master' into windows-gn
CallumIddon 3313323
On windows-gn: Auto stash before merge of "windows-gn" and "master"
CallumIddon 056867b
Merge branch 'master' into windows-gn
CallumIddon a5c47e4
Merge branch 'HEAD' into windows-gn
CallumIddon f0b13fb
Fix Visual Studio Build
CallumIddon 1505106
Merge branch 'master' into windows-gn
CallumIddon b51bd0e
PR Feedback
CallumIddon 5fde142
Comply with Dart Analyzer
CallumIddon e8e632e
Format Fix
CallumIddon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2018 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
config("glfw3") { | ||
libs = [ | ||
"glfw3.lib", | ||
"opengl32.lib", | ||
|
||
"user32.lib", | ||
"gdi32.lib", | ||
"shell32.lib", | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# Copyright 2018 Google LLC | ||
CallumIddon marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
toolchain("msvc") { | ||
env_setup = "vcvars64.bat &&" | ||
CallumIddon marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
tool("cc") { | ||
pdbfile = "{{target_out_dir}}/{{label_name}}_c.pdb" | ||
command = "$env_setup cl /nologo /showIncludes /MD /FC {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} /c {{source}} /Fo{{output}} /Fd$pdbfile" | ||
depsformat = "msvc" | ||
description = "CC {{output}}" | ||
outputs = [ | ||
"{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.obj", | ||
] | ||
} | ||
|
||
tool("cxx") { | ||
pdbfile = "{{target_out_dir}}/{{label_name}}_c.pdb" | ||
command = "$env_setup cl /nologo /showIncludes /MD /FC {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} /c {{source}} /Fo{{output}} /Fd$pdbfile" | ||
depsformat = "msvc" | ||
description = "CXX {{output}}" | ||
outputs = [ | ||
"{{source_out_dir}}/{{target_output_name}}.{{source_name_part}}.obj", | ||
] | ||
} | ||
|
||
tool("alink") { | ||
rspfile = "{{output}}.rsp" | ||
command = "$env_setup lib /nologo /OUT:{{output}} @$rspfile" | ||
description = "AR {{target_output_name}}{{output_extension}}" | ||
rspfile_content = "{{inputs}}" | ||
outputs = [ | ||
"{{target_out_dir}}/{{target_output_name}}{{output_extension}}", | ||
] | ||
default_output_extension = ".lib" | ||
} | ||
|
||
tool("solink") { | ||
dllname = "{{target_output_name}}{{output_extension}}" # e.g. foo.dll | ||
dllfile = "{{output_dir}}/$dllname" | ||
libfile = dllname + ".lib" # e.g. foo.dll.lib | ||
pdbfile = dllname + ".pdb" | ||
rspfile = dllname + ".rsp" | ||
|
||
command = "$env_setup link /nologo /DLL {{ldflags}} /IMPLIB:$libfile /OUT:$dllfile /DEBUG /PDB:$pdbfile @$rspfile" | ||
rspfile_content = "{{inputs}} {{solibs}} {{libs}}" | ||
|
||
description = "SOLINK $dllfile" | ||
|
||
# Use this for {{output_extension}} expansions unless a target manually | ||
# overrides it (in which case {{output_extension}} will be what the target | ||
# specifies). | ||
default_output_extension = ".dll" | ||
|
||
# Use this for {{output_dir}} expansions unless a target manually overrides | ||
# it (in which case {{output_dir}} will be what the target specifies). | ||
default_output_dir = "{{root_out_dir}}" | ||
|
||
lib_dir_switch = "/LIBPATH:" | ||
|
||
outputs = [ | ||
dllfile, | ||
libfile, | ||
pdbfile, | ||
] | ||
|
||
link_output = dllfile | ||
depend_output = dllfile | ||
} | ||
|
||
tool("link") { | ||
outfile = "{{target_output_name}}{{output_extension}}" | ||
rspfile = "$outfile.rsp" | ||
pdbfile = "$outfile.pdb" | ||
command = "$env_setup link {{ldflags}} /nologo /OUT:$outfile /PDB:$pdbfile @$rspfile" | ||
description = "LINK $outfile" | ||
default_output_dir = "{{root_out_dir}}" | ||
rspfile_content = "{{inputs}} {{libs}} {{solibs}}" | ||
lib_dir_switch = "/LIBPATH:" | ||
outputs = [ | ||
outfile, | ||
] | ||
} | ||
|
||
tool("stamp") { | ||
command = "cmd /c echo > {{output}}" | ||
description = "STAMP {{output}}" | ||
} | ||
|
||
tool("copy") { | ||
command = "powershell -Command Copy-Item {{source}} {{output}}" | ||
description = "COPY {{source}} {{output}}" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.