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

Side by Side Diff: sky/engine/platform/BUILD.gn

Issue 663483006: Fix sky to pass 'gn check' (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
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 import("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//sky/engine/build/scripts/scripts.gni") 6 import("//sky/engine/build/scripts/scripts.gni")
7 import("//sky/engine/config.gni") 7 import("//sky/engine/config.gni")
8 8
9 # Most targets in this file are private actions so use that as the default. 9 # Most targets in this file are private actions so use that as the default.
10 visibility = [":*"] 10 visibility = [":*"]
11 11
12 sky_platform_output_dir = "$root_gen_dir/sky/platform" 12 sky_platform_output_dir = "$root_gen_dir/sky/platform"
13 13
14 component("sky_common") {
15 visibility += ["//sky/*"]
16 sources = [
17 "exported/WebCString.cpp",
18 "exported/WebString.cpp",
19 "exported/WebCommon.cpp",
20 ]
21
22 defines = [
23 "BLINK_COMMON_IMPLEMENTATION=1",
24 "INSIDE_BLINK",
25 ]
26
27 configs += [
28 "//build/config/compiler:wexit_time_destructors",
29 "//sky/engine:config",
30 "//sky/engine:non_test_config",
31 ]
32
33 deps = [
34 "//sky/engine/wtf",
35 ]
36 }
37
38 action("font_family_names") { 14 action("font_family_names") {
39 script = "../build/scripts/make_names.py" 15 script = "../build/scripts/make_names.py"
40 16
41 font_family_names_in = "fonts/FontFamilyNames.in" 17 font_family_names_in = "fonts/FontFamilyNames.in"
42 inputs = make_names_files + [ font_family_names_in ] 18 inputs = make_names_files + [ font_family_names_in ]
43 19
44 outputs = [ 20 outputs = [
45 "$sky_platform_output_dir/FontFamilyNames.cpp", 21 "$sky_platform_output_dir/FontFamilyNames.cpp",
46 "$sky_platform_output_dir/FontFamilyNames.h", 22 "$sky_platform_output_dir/FontFamilyNames.h",
47 ] 23 ]
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 "--key-positions=*", 65 "--key-positions=*",
90 "-D", "-s", "2", 66 "-D", "-s", "2",
91 rebase_path(color_data_gperf, root_build_dir), 67 rebase_path(color_data_gperf, root_build_dir),
92 "--output-file=" + rebase_path(output_file, root_build_dir), 68 "--output-file=" + rebase_path(output_file, root_build_dir),
93 ] 69 ]
94 } 70 }
95 71
96 group("make_platform_generated") { 72 group("make_platform_generated") {
97 visibility += [":*"] 73 visibility += [":*"]
98 deps = [ 74 deps = [
99 ":sky_common",
100 ":color_data", 75 ":color_data",
101 ":font_family_names", 76 ":font_family_names",
102 ":runtime_enabled_features", 77 ":runtime_enabled_features",
103 ] 78 ]
104 } 79 }
105 80
106 component("platform") { 81 component("platform") {
107 visibility += ["//sky/*"] 82 visibility += ["//sky/*"]
108 83
109 output_name = "sky_platform" 84 output_name = "sky_platform"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 "animation/UnitBezier.h", 184 "animation/UnitBezier.h",
210 "clipboard/ClipboardMimeTypes.cpp", 185 "clipboard/ClipboardMimeTypes.cpp",
211 "clipboard/ClipboardMimeTypes.h", 186 "clipboard/ClipboardMimeTypes.h",
212 "clipboard/ClipboardUtilities.cpp", 187 "clipboard/ClipboardUtilities.cpp",
213 "clipboard/ClipboardUtilities.h", 188 "clipboard/ClipboardUtilities.h",
214 "clipboard/ClipboardUtilitiesPosix.cpp", 189 "clipboard/ClipboardUtilitiesPosix.cpp",
215 "exported/Platform.cpp", 190 "exported/Platform.cpp",
216 "exported/WebActiveGestureAnimation.cpp", 191 "exported/WebActiveGestureAnimation.cpp",
217 "exported/WebActiveGestureAnimation.h", 192 "exported/WebActiveGestureAnimation.h",
218 "exported/WebArrayBuffer.cpp", 193 "exported/WebArrayBuffer.cpp",
194 "exported/WebCString.cpp",
195 "exported/WebCommon.cpp",
219 "exported/WebConvertableToTraceFormat.cpp", 196 "exported/WebConvertableToTraceFormat.cpp",
220 "exported/WebCursorInfo.cpp", 197 "exported/WebCursorInfo.cpp",
221 "exported/WebData.cpp", 198 "exported/WebData.cpp",
222 "exported/WebFilterKeyframe.cpp", 199 "exported/WebFilterKeyframe.cpp",
223 "exported/WebHTTPBody.cpp", 200 "exported/WebHTTPBody.cpp",
224 "exported/WebHTTPLoadInfo.cpp", 201 "exported/WebHTTPLoadInfo.cpp",
225 "exported/WebImageSkia.cpp", 202 "exported/WebImageSkia.cpp",
226 "exported/WebMediaConstraints.cpp", 203 "exported/WebMediaConstraints.cpp",
227 "exported/WebMediaDeviceInfo.cpp", 204 "exported/WebMediaDeviceInfo.cpp",
228 "exported/WebScrollbarImpl.cpp", 205 "exported/WebScrollbarImpl.cpp",
229 "exported/WebScrollbarImpl.h", 206 "exported/WebScrollbarImpl.h",
230 "exported/WebScrollbarThemeGeometryNative.cpp", 207 "exported/WebScrollbarThemeGeometryNative.cpp",
231 "exported/WebScrollbarThemeGeometryNative.h", 208 "exported/WebScrollbarThemeGeometryNative.h",
209 "exported/WebString.cpp",
232 "exported/WebTransformKeyframe.cpp", 210 "exported/WebTransformKeyframe.cpp",
233 "exported/WebURL.cpp", 211 "exported/WebURL.cpp",
234 "exported/WebURLError.cpp", 212 "exported/WebURLError.cpp",
235 "exported/WebURLLoadTiming.cpp", 213 "exported/WebURLLoadTiming.cpp",
236 "exported/WebURLRequest.cpp", 214 "exported/WebURLRequest.cpp",
237 "exported/WebURLRequestPrivate.h", 215 "exported/WebURLRequestPrivate.h",
238 "exported/WebURLResponse.cpp", 216 "exported/WebURLResponse.cpp",
239 "exported/WebURLResponsePrivate.h", 217 "exported/WebURLResponsePrivate.h",
240 "exported/WrappedResourceRequest.h", 218 "exported/WrappedResourceRequest.h",
241 "exported/WrappedResourceResponse.h", 219 "exported/WrappedResourceResponse.h",
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 "INSIDE_BLINK", 642 "INSIDE_BLINK",
665 ] 643 ]
666 644
667 include_dirs = [ 645 include_dirs = [
668 "$root_gen_dir/sky", 646 "$root_gen_dir/sky",
669 ] 647 ]
670 648
671 deps = [ 649 deps = [
672 ":heap_asm_stubs", 650 ":heap_asm_stubs",
673 ":make_platform_generated", 651 ":make_platform_generated",
652 "//base:base",
674 "//gpu/command_buffer/client:gles2_c_lib", 653 "//gpu/command_buffer/client:gles2_c_lib",
654 "//mojo/application",
655 "//mojo/common:common",
656 "//mojo/public/c/system:for_shared_library",
657 "//mojo/public/cpp/bindings",
658 "//mojo/public/cpp/system:system",
659 "//mojo/public/cpp/utility",
675 "//skia", 660 "//skia",
676 "//third_party:jpeg", 661 "//sky/engine/platform/heap",
662 "//sky/engine/wtf",
677 "//third_party/harfbuzz-ng", 663 "//third_party/harfbuzz-ng",
678 "//third_party/iccjpeg", 664 "//third_party/iccjpeg",
679 "//third_party/icu", 665 "//third_party/icu",
680 "//third_party/libpng", 666 "//third_party/libpng",
681 "//third_party/ots", 667 "//third_party/ots",
682 "//third_party/qcms", 668 "//third_party/qcms",
683 "//mojo/application", 669 "//third_party:jpeg",
684 "//mojo/public/cpp/bindings",
685 "//mojo/public/cpp/utility",
686 "//mojo/public/c/system:for_shared_library",
687 "//sky/engine/wtf",
688 "//sky/engine/platform/heap",
689 "//url", 670 "//url",
690 "//v8", 671 "//v8",
691 ] 672 ]
692 673
693 forward_dependent_configs_from = [ 674 forward_dependent_configs_from = [
694 "//gpu/command_buffer/client:gles2_c_lib", 675 "//gpu/command_buffer/client:gles2_c_lib",
695 "//skia", 676 "//skia",
696 "//third_party:jpeg", 677 "//third_party:jpeg",
697 "//third_party/iccjpeg", 678 "//third_party/iccjpeg",
698 "//third_party/libpng", 679 "//third_party/libpng",
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 "geometry/FloatBoxTestHelpers.cpp", 783 "geometry/FloatBoxTestHelpers.cpp",
803 "geometry/FloatPolygonTest.cpp", 784 "geometry/FloatPolygonTest.cpp",
804 "geometry/FloatRoundedRectTest.cpp", 785 "geometry/FloatRoundedRectTest.cpp",
805 "geometry/RegionTest.cpp", 786 "geometry/RegionTest.cpp",
806 "geometry/RoundedRectTest.cpp", 787 "geometry/RoundedRectTest.cpp",
807 "graphics/GraphicsContextTest.cpp", 788 "graphics/GraphicsContextTest.cpp",
808 "graphics/ThreadSafeDataTransportTest.cpp", 789 "graphics/ThreadSafeDataTransportTest.cpp",
809 "graphics/filters/FilterOperationsTest.cpp", 790 "graphics/filters/FilterOperationsTest.cpp",
810 "graphics/filters/ImageFilterBuilderTest.cpp", 791 "graphics/filters/ImageFilterBuilderTest.cpp",
811 "graphics/gpu/DrawingBufferTest.cpp", 792 "graphics/gpu/DrawingBufferTest.cpp",
812 "graphics/test/MockDiscardablePixelRef.h",
813 "image-decoders/ImageDecoderTest.cpp", 793 "image-decoders/ImageDecoderTest.cpp",
814 "mac/ScrollElasticityControllerTest.mm", 794 "mac/ScrollElasticityControllerTest.mm",
815 "network/HTTPParsersTest.cpp", 795 "network/HTTPParsersTest.cpp",
816 "testing/ArenaTestHelpers.h", 796 "testing/ArenaTestHelpers.h",
817 "testing/TreeTestHelpers.cpp", 797 "testing/TreeTestHelpers.cpp",
818 "testing/TreeTestHelpers.h", 798 "testing/TreeTestHelpers.h",
819 "testing/RunAllTests.cpp", 799 "testing/RunAllTests.cpp",
820 "transforms/TransformOperationsTest.cpp", 800 "transforms/TransformOperationsTest.cpp",
821 "transforms/TransformationMatrixTest.cpp", 801 "transforms/TransformationMatrixTest.cpp",
822 "text/BidiResolverTest.cpp", 802 "text/BidiResolverTest.cpp",
823 "text/SegmentedStringTest.cpp", 803 "text/SegmentedStringTest.cpp",
824 "text/UnicodeUtilitiesTest.cpp", 804 "text/UnicodeUtilitiesTest.cpp",
825 "weborigin/KURLTest.cpp", 805 "weborigin/KURLTest.cpp",
826 "weborigin/SecurityPolicyTest.cpp", 806 "weborigin/SecurityPolicyTest.cpp",
827 ] 807 ]
828 808
829 configs += [ 809 configs += [
830 "//sky/engine:config", 810 "//sky/engine:config",
831 ] 811 ]
832 812
833 deps = [ 813 deps = [
834 ":sky_common",
835 ":platform", 814 ":platform",
836 "//base", 815 "//base",
837 "//base/allocator", 816 "//base/allocator",
838 "//base/test:test_support", 817 "//base/test:test_support",
839 "//skia", 818 "//skia",
840 "//testing/gmock", 819 "//testing/gmock",
841 "//testing/gtest", 820 "//testing/gtest",
842 "//sky/engine/wtf", 821 "//sky/engine/wtf",
843 "//sky/engine/wtf:test_support", 822 "//sky/engine/wtf:test_support",
844 "//url", 823 "//url",
(...skipping 21 matching lines...) Expand all
866 # The *NEON.cpp files fail to compile when -mthumb is passed. Force 845 # The *NEON.cpp files fail to compile when -mthumb is passed. Force
867 # them to build in ARM mode. 846 # them to build in ARM mode.
868 # See https://bugs.webkit.org/show_bug.cgi?id=62916. 847 # See https://bugs.webkit.org/show_bug.cgi?id=62916.
869 # TODO(GYP) 848 # TODO(GYP)
870 #'cflags': ['-marm'], 849 #'cflags': ['-marm'],
871 # 'conditions': [ 850 # 'conditions': [
872 # ['OS=="android"', { 851 # ['OS=="android"', {
873 # 'cflags!': ['-mthumb'], 852 # 'cflags!': ['-mthumb'],
874 # }], 853 # }],
875 # ], 854 # ],
876
877 deps = [ ":sky_common" ]
878 } 855 }
879 } 856 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698