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

Unified Diff: components/cronet/ios/sample/BUILD.gn

Issue 2807283002: [Cronet] Build static libcronet.a for iOS with complete dependencies. (Closed)
Patch Set: Change package_ios.py to build per architecture and skip x86. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/cronet/ios/sample/BUILD.gn
diff --git a/components/cronet/ios/sample/BUILD.gn b/components/cronet/ios/sample/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..a2b3b030ecc97288cb13b5b1333fa5fc1dca8e7e
--- /dev/null
+++ b/components/cronet/ios/sample/BUILD.gn
@@ -0,0 +1,61 @@
+# Copyright 2016 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("//build/config/ios/rules.gni")
+
+ios_app_bundle("cronet_sample_static") {
+ info_plist = "cronet-sample-Info.plist"
+
+ deps = [
+ "//base",
+
+ # "//components/cronet/ios:cronet_static",
+ "//components/cronet/ios:lib_cronet",
+
+ # All shared libraries must have the sanitizer deps to properly link in
+ # asan mode (this target will be empty in other cases).
+ "//build/config/sanitizers:deps",
+ ]
+
+ sources = [
+ "cronet_sample_app_delegate.h",
+ "cronet_sample_app_delegate.mm",
+ "cronet_sample_view_controller.h",
+ "cronet_sample_view_controller.m",
+ "main.mm",
+ ]
+
+ include_dirs = [ "//components/grpc_support/include" ]
+
+ # bundle_deps = [ "//ios/crnet:crnet_framework+bundle" ]
+
+ configs += [ "//build/config/compiler:enable_arc" ]
+}
+
+ios_app_bundle("cronet_sample") {
+ info_plist = "cronet-sample-Info.plist"
+
+ deps = [
+ "//base",
+ "//components/cronet/ios:cronet_framework+link",
+
+ # All shared libraries must have the sanitizer deps to properly link in
+ # asan mode (this target will be empty in other cases).
+ "//build/config/sanitizers:deps",
+ ]
+
+ sources = [
+ "cronet_sample_app_delegate.h",
+ "cronet_sample_app_delegate.mm",
+ "cronet_sample_view_controller.h",
+ "cronet_sample_view_controller.m",
+ "main.mm",
+ ]
+
+ include_dirs = [ "//components/grpc_support/include" ]
+
+ bundle_deps = [ "//components/cronet/ios:cronet_framework+bundle" ]
+
+ configs += [ "//build/config/compiler:enable_arc" ]
+}

Powered by Google App Engine
This is Rietveld 408576698