Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: tools/gn/secondary/third_party/angle/BUILD.gn

Issue 335693004: Hook up content/browser compile in GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This config is applied to internal Angle targets (not pushed to dependents). 5 # This config is applied to internal Angle targets (not pushed to dependents).
6 config("internal_config") { 6 config("internal_config") {
7 include_dirs = [ 7 include_dirs = [
8 "include", 8 "include",
9 "src", 9 "src",
10 ] 10 ]
(...skipping 27 matching lines...) Expand all
38 "include/GLES2/gl2ext.h", 38 "include/GLES2/gl2ext.h",
39 "include/GLES2/gl2platform.h", 39 "include/GLES2/gl2platform.h",
40 "include/GLES3/gl3.h", 40 "include/GLES3/gl3.h",
41 "include/GLES3/gl3ext.h", 41 "include/GLES3/gl3ext.h",
42 "include/GLES3/gl3platform.h", 42 "include/GLES3/gl3platform.h",
43 "include/GLSLANG/ShaderLang.h", 43 "include/GLSLANG/ShaderLang.h",
44 "include/KHR/khrplatform.h", 44 "include/KHR/khrplatform.h",
45 ] 45 ]
46 } 46 }
47 47
48 source_set("translator_lib") { 48 static_library("preprocessor") {
49 sources = [
50 "src/compiler/preprocessor/DiagnosticsBase.cpp",
51 "src/compiler/preprocessor/DiagnosticsBase.h",
52 "src/compiler/preprocessor/DirectiveHandlerBase.cpp",
53 "src/compiler/preprocessor/DirectiveHandlerBase.h",
54 "src/compiler/preprocessor/DirectiveParser.cpp",
55 "src/compiler/preprocessor/DirectiveParser.h",
56 "src/compiler/preprocessor/ExpressionParser.cpp",
57 "src/compiler/preprocessor/ExpressionParser.h",
58 "src/compiler/preprocessor/ExpressionParser.y",
59 "src/compiler/preprocessor/Input.cpp",
60 "src/compiler/preprocessor/Input.h",
61 "src/compiler/preprocessor/Lexer.cpp",
62 "src/compiler/preprocessor/Lexer.h",
63 "src/compiler/preprocessor/Macro.cpp",
64 "src/compiler/preprocessor/Macro.h",
65 "src/compiler/preprocessor/MacroExpander.cpp",
66 "src/compiler/preprocessor/MacroExpander.h",
67 "src/compiler/preprocessor/Preprocessor.cpp",
68 "src/compiler/preprocessor/Preprocessor.h",
69 "src/compiler/preprocessor/SourceLocation.h",
70 "src/compiler/preprocessor/Token.cpp",
71 "src/compiler/preprocessor/Token.h",
72 "src/compiler/preprocessor/Tokenizer.cpp",
73 "src/compiler/preprocessor/Tokenizer.h",
74 "src/compiler/preprocessor/Tokenizer.l",
75 "src/compiler/preprocessor/numeric_lex.h",
76 "src/compiler/preprocessor/pp_utils.h",
77 ]
78
79 configs -= [ "//build/config/compiler:chromium_code" ]
80 configs += [
81 ":internal_config",
82 "//build/config/compiler:no_chromium_code",
83 ]
84
85 }
86
87 static_library("translator_lib") {
49 sources = [ 88 sources = [
50 "src/common/RefCountObject.cpp", 89 "src/common/RefCountObject.cpp",
51 "src/common/RefCountObject.h", 90 "src/common/RefCountObject.h",
52 "src/common/angleutils.h", 91 "src/common/angleutils.h",
53 "src/common/blocklayout.cpp", 92 "src/common/blocklayout.cpp",
54 "src/common/blocklayout.h", 93 "src/common/blocklayout.h",
55 "src/common/debug.cpp", 94 "src/common/debug.cpp",
56 "src/common/debug.h", 95 "src/common/debug.h",
57 "src/common/event_tracer.cpp", 96 "src/common/event_tracer.cpp",
58 "src/common/event_tracer.h", 97 "src/common/event_tracer.h",
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 226 }
188 227
189 configs -= [ "//build/config/compiler:chromium_code" ] 228 configs -= [ "//build/config/compiler:chromium_code" ]
190 configs += [ 229 configs += [
191 ":internal_config", 230 ":internal_config",
192 "//build/config/compiler:no_chromium_code", 231 "//build/config/compiler:no_chromium_code",
193 ] 232 ]
194 233
195 deps = [ 234 deps = [
196 ":includes", 235 ":includes",
236 ":preprocessor",
197 ] 237 ]
198 } 238 }
199 239
200 config("translator_static_config") { 240 config("translator_static_config") {
201 defines = [ "ANGLE_TRANSLATOR_STATIC" ] 241 defines = [ "ANGLE_TRANSLATOR_STATIC" ]
202 } 242 }
203 243
204 source_set("translator_static") { 244 static_library("translator_static") {
205 sources = [ 245 sources = [
206 "src/compiler/translator/ShaderLang.cpp", 246 "src/compiler/translator/ShaderLang.cpp",
207 ] 247 ]
208 248
209 configs -= [ "//build/config/compiler:chromium_code" ] 249 configs -= [ "//build/config/compiler:chromium_code" ]
210 configs += [ 250 configs += [
211 ":internal_config", 251 ":internal_config",
212 "//build/config/compiler:no_chromium_code", 252 "//build/config/compiler:no_chromium_code",
213 ] 253 ]
214 direct_dependent_configs = [ ":translator_static_config" ] 254 direct_dependent_configs = [ ":translator_static_config" ]
(...skipping 11 matching lines...) Expand all
226 266
227 output_file = "$root_gen_dir/angle_commit.h" 267 output_file = "$root_gen_dir/angle_commit.h"
228 outputs = [ output_file ] 268 outputs = [ output_file ]
229 269
230 args = [ 270 args = [
231 rebase_path(".", root_build_dir), 271 rebase_path(".", root_build_dir),
232 rebase_path(output_file, root_build_dir), 272 rebase_path(output_file, root_build_dir),
233 ] 273 ]
234 } 274 }
235 } else { 275 } else {
236 group("commit_id") {} 276 # While Angle is being updated, we copy a temporary hardcoded commit.h. This
277 # is copied both as commit.h and angle_commit.h. The angle roll will rename
278 # this file from commit.h to angle_commit.h and we don't want to make the
279 # udpate more complicated than necessary.
280 group("commit_id") {
281 deps = [ ":copy_angle_commit_h", ":copy_commit_h" ]
282 }
283
284 hardcoded_commit = [ "//tools/gn/secondary/third_party/angle/angle_commit.h" ]
285 copy("copy_angle_commit_h") {
286 sources = hardcoded_commit
287 outputs = [ "$root_gen_dir/angle_commit.h" ]
288 }
289 copy("copy_commit_h") {
290 sources = hardcoded_commit
291 outputs = [ "$root_gen_dir/commit.h" ]
292 }
237 } 293 }
238 294
239 if (is_win) { 295 if (is_win) {
240 angle_enable_d3d9 = true 296 angle_enable_d3d9 = true
241 angle_enable_d3d11 = true 297 angle_enable_d3d11 = true
242 298
243 shared_library("libGLESv2") { 299 shared_library("libGLESv2") {
244 sources = [ 300 sources = [
245 "src/common/RefCountObject.cpp", 301 "src/common/RefCountObject.cpp",
246 "src/common/RefCountObject.h", 302 "src/common/RefCountObject.h",
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 "src/libGLESv2/validationES3.cpp", 406 "src/libGLESv2/validationES3.cpp",
351 "src/libGLESv2/validationES3.h", 407 "src/libGLESv2/validationES3.h",
352 "src/third_party/murmurhash/MurmurHash3.cpp", 408 "src/third_party/murmurhash/MurmurHash3.cpp",
353 "src/third_party/murmurhash/MurmurHash3.h", 409 "src/third_party/murmurhash/MurmurHash3.h",
354 "src/third_party/systeminfo/SystemInfo.cpp", 410 "src/third_party/systeminfo/SystemInfo.cpp",
355 "src/third_party/systeminfo/SystemInfo.h", 411 "src/third_party/systeminfo/SystemInfo.h",
356 ] 412 ]
357 413
358 defines = [ 414 defines = [
359 "ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ " + 415 "ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ " +
360 "TEXT(\"d3dcompiler_46.dll\"), \"TEXT(\"d3dcompiler_43.dll\") }" 416 "TEXT(\"d3dcompiler_46.dll\"), TEXT(\"d3dcompiler_43.dll\") }",
417 "GL_APICALL=",
418 "GL_GLEXT_PROTOTYPES=",
419 "EGLAPI=",
361 ] 420 ]
362 libs = [] 421 libs = []
363 422
364 # Shared D3dD sources. 423 # Shared D3dD sources.
365 if (angle_enable_d3d9 || angle_enable_d3d11) { 424 if (angle_enable_d3d9 || angle_enable_d3d11) {
366 sources += [ 425 sources += [
367 "src/libGLESv2/renderer/d3d/HLSLCompiler.cpp", 426 "src/libGLESv2/renderer/d3d/HLSLCompiler.cpp",
368 "src/libGLESv2/renderer/d3d/HLSLCompiler.h", 427 "src/libGLESv2/renderer/d3d/HLSLCompiler.h",
369 ] 428 ]
370 } 429 }
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 include_dirs = [ "src/libGLESv2" ] 633 include_dirs = [ "src/libGLESv2" ]
575 libs = [ "d3d9.lib" ] 634 libs = [ "d3d9.lib" ]
576 635
577 deps = [ 636 deps = [
578 ":commit_id", 637 ":commit_id",
579 ":includes", 638 ":includes",
580 ":libGLESv2", 639 ":libGLESv2",
581 ] 640 ]
582 } 641 }
583 } # is_win 642 } # is_win
OLDNEW
« no previous file with comments | « third_party/protobuf/proto_library.gni ('k') | tools/gn/secondary/third_party/angle/angle_commit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698