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

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

Issue 678533002: Fix sky build on android (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/BUILD.gn ('k') | sky/engine/public/BUILD.gn » ('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 import("//third_party/yasm/yasm_assemble.gni")
9 8
10 # 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.
11 visibility = [":*"] 10 visibility = [":*"]
12 11
13 sky_platform_output_dir = "$root_gen_dir/sky/platform" 12 sky_platform_output_dir = "$root_gen_dir/sky/platform"
14 13
15 component("sky_common") { 14 component("sky_common") {
16 visibility += ["//sky/*"] 15 visibility += ["//sky/*"]
17 sources = [ 16 sources = [
18 "exported/WebCString.cpp", 17 "exported/WebCString.cpp",
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 746
748 if (is_linux) { 747 if (is_linux) {
749 direct_dependent_configs = [ "//build/config/linux:fontconfig" ] 748 direct_dependent_configs = [ "//build/config/linux:fontconfig" ]
750 } 749 }
751 750
752 if (cpu_arch == "arm") { 751 if (cpu_arch == "arm") {
753 deps += [ ":sky_arm_neon" ] 752 deps += [ ":sky_arm_neon" ]
754 } 753 }
755 } 754 }
756 755
756 if (cpu_arch == "x86" || cpu_arch == "x64") {
757
758 import("//third_party/yasm/yasm_assemble.gni")
759
757 yasm_assemble("heap_asm_stubs") { 760 yasm_assemble("heap_asm_stubs") {
758 if (cpu_arch == "x86" || cpu_arch == "x64") { 761 sources = [ "heap/asm/SaveRegisters_x86.asm" ]
759 sources = [ "heap/asm/SaveRegisters_x86.asm" ]
760 } else if (cpu_arch == "arm") {
761 sources = [ "heap/asm/SaveRegisters_arm.S" ]
762 } else if (cpu_arch == "arm64") {
763 sources = [ "heap/asm/SaveRegisters_arm64.S" ]
764 } else if (cpu_arch == "mipsel") {
765 sources = [ "heap/asm/SaveRegisters_mips.S" ]
766 }
767 762
768 yasm_flags = [] 763 yasm_flags = []
769 if (is_mac) { 764 if (is_mac) {
770 # Necessary to ensure symbols end up with a _ prefix; added by 765 # Necessary to ensure symbols end up with a _ prefix; added by
771 # yasm_compile.gypi for Windows, but not Mac. 766 # yasm_compile.gypi for Windows, but not Mac.
772 yasm_flags += [ "-DPREFIX" ] 767 yasm_flags += [ "-DPREFIX" ]
773 } 768 }
774 if (cpu_arch == "x64") { 769 if (cpu_arch == "x64") {
775 if (is_win) { 770 if (is_win) {
776 yasm_flags += [ "-DX64WIN=1" ] 771 yasm_flags += [ "-DX64WIN=1" ]
777 } else { 772 } else {
778 yasm_flags += [ "-DX64POSIX=1" ] 773 yasm_flags += [ "-DX64POSIX=1" ]
779 } 774 }
780 } else if (cpu_arch == "x86") { 775 } else if (cpu_arch == "x86") {
781 yasm_flags += [ "-DIA32=1" ] 776 yasm_flags += [ "-DIA32=1" ]
782 } else if (cpu_arch == "arm") {
783 yasm_flags += [ "-DARM=1" ]
784 } 777 }
785 } 778 }
786 779
780 } else { # cpu_arch == "x86" || cpu_arch == "x64"
781
782 source_set("heap_asm_stubs") {
783 if (cpu_arch == "arm") {
784 sources = [ "heap/asm/SaveRegisters_arm.S" ]
785 } else if (cpu_arch == "arm64") {
786 sources = [ "heap/asm/SaveRegisters_arm64.S" ]
787 } else if (cpu_arch == "mipsel") {
788 sources = [ "heap/asm/SaveRegisters_mips.S" ]
789 }
790
791 if (cpu_arch == "arm") {
792 defines = [ "ARM=1" ]
793 }
794 }
795
796 }
797
787 test("platform_unittests") { 798 test("platform_unittests") {
788 visibility += ["//sky/*"] 799 visibility += ["//sky/*"]
789 output_name = "sky_platform_unittests" 800 output_name = "sky_platform_unittests"
790 801
791 sources = [ 802 sources = [
792 "ClockTest.cpp", 803 "ClockTest.cpp",
793 "DecimalTest.cpp", 804 "DecimalTest.cpp",
794 "LayoutUnitTest.cpp", 805 "LayoutUnitTest.cpp",
795 "LifecycleContextTest.cpp", 806 "LifecycleContextTest.cpp",
796 "PODArenaTest.cpp", 807 "PODArenaTest.cpp",
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 #'cflags': ['-marm'], 894 #'cflags': ['-marm'],
884 # 'conditions': [ 895 # 'conditions': [
885 # ['OS=="android"', { 896 # ['OS=="android"', {
886 # 'cflags!': ['-mthumb'], 897 # 'cflags!': ['-mthumb'],
887 # }], 898 # }],
888 # ], 899 # ],
889 900
890 deps = [ ":sky_common" ] 901 deps = [ ":sky_common" ]
891 } 902 }
892 } 903 }
OLDNEW
« no previous file with comments | « sky/BUILD.gn ('k') | sky/engine/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698