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

Unified Diff: ui/ui_unittests_bundle.gypi

Issue 152543005: Introduce a mock ui_unittests Framework for loading resources. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix mac official builder, and missing dependency (thanks GTK). Created 6 years, 9 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
« ui/ui_unittests.gyp ('K') | « ui/ui_unittests.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ui_unittests_bundle.gypi
diff --git a/ui/ui_unittests_bundle.gypi b/ui/ui_unittests_bundle.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..94ef939713e8b5d3f7c2fc49fb2621d157572751
--- /dev/null
+++ b/ui/ui_unittests_bundle.gypi
@@ -0,0 +1,55 @@
+# Copyright 2014 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.
+
+# This file contains resources for the ui_unittests test bundle.
+# See chrome_dll_bundle.gypi for a description of the techniques here.
+{
+ 'product_name': 'ui_unittests Framework',
+ 'variables': {
+ 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui',
+
+ # There is no executable in the mock framework, and so nothing to strip.
+ 'mac_strip': 0,
tapted 2014/03/11 11:11:03 fix for official builds
+ },
+ 'mac_bundle': 1,
+ 'xcode_settings': {
+ 'CHROMIUM_BUNDLE_ID': 'com.google.ChromiumUITests',
+ 'DYLIB_COMPATIBILITY_VERSION': '1.0.0',
+ 'DYLIB_CURRENT_VERSION': '1.0.0',
+ 'DYLIB_INSTALL_NAME_BASE': '@executable_path/../Versions/1.0.0.0',
+ 'LD_DYLIB_INSTALL_NAME':
+ '$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',
+ 'INFOPLIST_FILE': 'base/test/framework-Info.plist',
+ },
+ 'mac_bundle_resources': [
+ 'base/test/framework-Info.plist',
+ '<(PRODUCT_DIR)/ui_test.pak',
+ '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))',
+ ],
+ 'mac_bundle_resources!': [
+ 'base/test/framework-Info.plist',
+ ],
+ 'postbuilds': [
+ {
+ 'postbuild_name': 'Symlink Resources',
+ 'action': [
+ 'ln',
+ '-fns',
+ 'Versions/A/Resources',
+ '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Resources'
+ ],
+ },
+ {
+ # Resource bundle pak names are hardcoded. This allows ui_test.pak to be
+ # found while running the ResourceBundle tests.
+ 'postbuild_name': 'Symlink chrome_100_percent for test',
+ 'action': [
+ 'ln',
+ '-fns',
+ 'ui_test.pak',
+ '${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Versions/A/Resources/chrome_100_percent.pak'
+ ],
+ },
+ ],
+}
« ui/ui_unittests.gyp ('K') | « ui/ui_unittests.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698