Index: third_party/android_platform/BUILD.gn |
diff --git a/third_party/android_platform/BUILD.gn b/third_party/android_platform/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2494c312653da86a8e93249932e2bf8eac99bb2a |
--- /dev/null |
+++ b/third_party/android_platform/BUILD.gn |
@@ -0,0 +1,64 @@ |
+# Copyright 2015 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import("config.gni") |
+#import("//testing/test.gni") |
+ |
+if (current_toolchain == host_toolchain) { |
+ # GYP: //third_party/android_platform/relocation_packer.gyp:lib_relocation_packer |
+ source_set("lib_relocation_packer") { |
+ deps = [ |
+ "//third_party/elfutils:libelf", |
+ ] |
+ configs -= [ "//build/config/compiler:chromium_code" ] |
+ configs += [ "//build/config/compiler:no_chromium_code" ] |
+ sources = [ |
+ "relocation_packer/src/debug.cc", |
+ "relocation_packer/src/delta_encoder.cc", |
+ "relocation_packer/src/elf_file.cc", |
+ "relocation_packer/src/leb128.cc", |
+ "relocation_packer/src/packer.cc", |
+ "relocation_packer/src/sleb128.cc", |
+ ] |
+ } |
+ |
+ # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation_packer |
+ executable("android_relocation_packer") { |
+ deps = [ |
+ ":lib_relocation_packer", |
+ "//third_party/elfutils:libelf", |
+ ] |
+ sources = [ |
+ "relocation_packer/src/main.cc", |
+ ] |
+ } |
+ |
+ # Note: unit test target suppressed due to current absence of gn target for: |
rmcilroy
2015/03/20 17:38:26
Is there a bug for this you can point to?
simonb (inactive)
2015/03/20 18:33:24
None that I'm aware of. AFAIK it's just Not Done
|
+ # //testing:gtest |
+ # |
+ # # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation_packer_unittests |
+ # test("android_relocation_packer_unittests") { |
+ # sources = [ |
+ # "relocation_packer/src/debug.cc", |
+ # "relocation_packer/src/delta_encoder.cc", |
+ # "relocation_packer/src/elf_file.cc", |
+ # "relocation_packer/src/leb128.cc", |
+ # "relocation_packer/src/packer.cc", |
+ # "relocation_packer/src/run_all_unittests.cc", |
+ # "relocation_packer/src/sleb128.cc", |
+ # ] |
+ # data = [ |
+ # "relocation_packer/test_data/elf_file_unittest_relocs_arm32.so", |
+ # "relocation_packer/test_data/elf_file_unittest_relocs_arm32_packed.so", |
+ # "relocation_packer/test_data/elf_file_unittest_relocs_arm64.so", |
+ # "relocation_packer/test_data/elf_file_unittest_relocs_arm64_packed.so", |
+ # ] |
+ # include_dirs = [ "//" ] |
+ # deps = [ |
+ # ":lib_relocation_packer", |
+ # ":android_relocation_packer_test_data", |
+ # "//testing:gtest", |
+ # ] |
+ # } |
+} |