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

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

Issue 678003003: Begin to remove heap/* (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
« no previous file with comments | « sky/engine/core/frame/ImageBitmapTest.cpp ('k') | sky/engine/platform/Supplementable.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = [":*"]
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 "RefCountedSupplement.h", 153 "RefCountedSupplement.h",
154 "ScriptForbiddenScope.cpp", 154 "ScriptForbiddenScope.cpp",
155 "ScriptForbiddenScope.h", 155 "ScriptForbiddenScope.h",
156 "SharedBuffer.cpp", 156 "SharedBuffer.cpp",
157 "SharedBuffer.h", 157 "SharedBuffer.h",
158 "SharedBufferChunkReader.cpp", 158 "SharedBufferChunkReader.cpp",
159 "SharedBufferChunkReader.h", 159 "SharedBufferChunkReader.h",
160 "SharedTimer.cpp", 160 "SharedTimer.cpp",
161 "SharedTimer.h", 161 "SharedTimer.h",
162 "Supplementable.h", 162 "Supplementable.h",
163 "TaskSynchronizer.cpp",
164 "TaskSynchronizer.h",
165 "ThreadTimers.cpp", 163 "ThreadTimers.cpp",
166 "ThreadTimers.h", 164 "ThreadTimers.h",
167 "Timer.cpp", 165 "Timer.cpp",
168 "Timer.h", 166 "Timer.h",
169 "TraceEvent.h", 167 "TraceEvent.h",
170 "TracedValue.cpp", 168 "TracedValue.cpp",
171 "TracedValue.h", 169 "TracedValue.h",
172 "UserGestureIndicator.cpp", 170 "UserGestureIndicator.cpp",
173 "UserGestureIndicator.h", 171 "UserGestureIndicator.h",
174 "WebThread.cpp", 172 "WebThread.cpp",
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 defines = [ 640 defines = [
643 "BLINK_PLATFORM_IMPLEMENTATION=1", 641 "BLINK_PLATFORM_IMPLEMENTATION=1",
644 "INSIDE_BLINK", 642 "INSIDE_BLINK",
645 ] 643 ]
646 644
647 include_dirs = [ 645 include_dirs = [
648 "$root_gen_dir/sky", 646 "$root_gen_dir/sky",
649 ] 647 ]
650 648
651 deps = [ 649 deps = [
652 ":heap_asm_stubs",
653 ":make_platform_generated", 650 ":make_platform_generated",
654 "//base:base", 651 "//base:base",
655 "//gpu/command_buffer/client:gles2_c_lib", 652 "//gpu/command_buffer/client:gles2_c_lib",
656 "//mojo/application", 653 "//mojo/application",
657 "//mojo/common:common", 654 "//mojo/common:common",
658 "//mojo/public/c/system:for_shared_library", 655 "//mojo/public/c/system:for_shared_library",
659 "//mojo/public/cpp/bindings", 656 "//mojo/public/cpp/bindings",
660 "//mojo/public/cpp/system", 657 "//mojo/public/cpp/system",
661 "//mojo/public/cpp/utility", 658 "//mojo/public/cpp/utility",
662 "//skia", 659 "//skia",
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 710
714 if (is_linux) { 711 if (is_linux) {
715 direct_dependent_configs = [ "//build/config/linux:fontconfig" ] 712 direct_dependent_configs = [ "//build/config/linux:fontconfig" ]
716 } 713 }
717 714
718 if (cpu_arch == "arm") { 715 if (cpu_arch == "arm") {
719 deps += [ ":sky_arm_neon" ] 716 deps += [ ":sky_arm_neon" ]
720 } 717 }
721 } 718 }
722 719
723 if (cpu_arch == "x86" || cpu_arch == "x64") {
724
725 import("//third_party/yasm/yasm_assemble.gni")
726
727 yasm_assemble("heap_asm_stubs") {
728 sources = [ "heap/asm/SaveRegisters_x86.asm" ]
729
730 yasm_flags = []
731 if (is_mac) {
732 # Necessary to ensure symbols end up with a _ prefix; added by
733 # yasm_compile.gypi for Windows, but not Mac.
734 yasm_flags += [ "-DPREFIX" ]
735 }
736 if (cpu_arch == "x64") {
737 if (is_win) {
738 yasm_flags += [ "-DX64WIN=1" ]
739 } else {
740 yasm_flags += [ "-DX64POSIX=1" ]
741 }
742 } else if (cpu_arch == "x86") {
743 yasm_flags += [ "-DIA32=1" ]
744 }
745 }
746
747 } else { # cpu_arch == "x86" || cpu_arch == "x64"
748
749 source_set("heap_asm_stubs") {
750 if (cpu_arch == "arm") {
751 sources = [ "heap/asm/SaveRegisters_arm.S" ]
752 } else if (cpu_arch == "arm64") {
753 sources = [ "heap/asm/SaveRegisters_arm64.S" ]
754 } else if (cpu_arch == "mipsel") {
755 sources = [ "heap/asm/SaveRegisters_mips.S" ]
756 }
757
758 if (cpu_arch == "arm") {
759 defines = [ "ARM=1" ]
760 }
761 }
762
763 }
764
765 test("platform_unittests") { 720 test("platform_unittests") {
766 visibility += ["//sky/*"] 721 visibility += ["//sky/*"]
767 output_name = "sky_platform_unittests" 722 output_name = "sky_platform_unittests"
768 723
769 sources = [ 724 sources = [
770 "ClockTest.cpp", 725 "ClockTest.cpp",
771 "DecimalTest.cpp", 726 "DecimalTest.cpp",
772 "LayoutUnitTest.cpp", 727 "LayoutUnitTest.cpp",
773 "LifecycleContextTest.cpp", 728 "LifecycleContextTest.cpp",
774 "PODArenaTest.cpp", 729 "PODArenaTest.cpp",
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 # See https://bugs.webkit.org/show_bug.cgi?id=62916. 812 # See https://bugs.webkit.org/show_bug.cgi?id=62916.
858 # TODO(GYP) 813 # TODO(GYP)
859 #'cflags': ['-marm'], 814 #'cflags': ['-marm'],
860 # 'conditions': [ 815 # 'conditions': [
861 # ['OS=="android"', { 816 # ['OS=="android"', {
862 # 'cflags!': ['-mthumb'], 817 # 'cflags!': ['-mthumb'],
863 # }], 818 # }],
864 # ], 819 # ],
865 } 820 }
866 } 821 }
OLDNEW
« no previous file with comments | « sky/engine/core/frame/ImageBitmapTest.cpp ('k') | sky/engine/platform/Supplementable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698