diff options
author | Hokein.Wu@gmail.com <Hokein.Wu@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-23 18:40:12 +0000 |
---|---|---|
committer | Hokein.Wu@gmail.com <Hokein.Wu@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-23 18:40:12 +0000 |
commit | ad0e98df1dc28c1c8fe4b151acfc49ac0f0ded4a (patch) | |
tree | a78add699e7e18af9abe2647616738939faec171 | |
parent | c5f1f3bc09f73f4e83d9371482505ee9392a4f7c (diff) | |
download | chromium_src-ad0e98df1dc28c1c8fe4b151acfc49ac0f0ded4a.zip chromium_src-ad0e98df1dc28c1c8fe4b151acfc49ac0f0ded4a.tar.gz chromium_src-ad0e98df1dc28c1c8fe4b151acfc49ac0f0ded4a.tar.bz2 |
Allow to disable API schema(JSON and IDL) to generate model code.
BUG=294203
TEST=compiled
Review URL: https://codereview.chromium.org/24449006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230478 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | build/json_schema_bundle_compile.gypi | 1 | ||||
-rw-r--r-- | chrome/common/extensions/api/api.gyp | 26 |
2 files changed, 16 insertions, 11 deletions
diff --git a/build/json_schema_bundle_compile.gypi b/build/json_schema_bundle_compile.gypi index b6107cf..3f6021a 100644 --- a/build/json_schema_bundle_compile.gypi +++ b/build/json_schema_bundle_compile.gypi @@ -43,6 +43,7 @@ '--namespace=<(root_namespace)', '--generator=cpp-bundle', '<@(schema_files)', + '<@(non_compiled_schema_files)', ], 'message': 'Generating C++ API bundle code', 'process_outputs_as_sources': 1, diff --git a/chrome/common/extensions/api/api.gyp b/chrome/common/extensions/api/api.gyp index 17f389a..8d02709 100644 --- a/chrome/common/extensions/api/api.gyp +++ b/chrome/common/extensions/api/api.gyp @@ -18,11 +18,25 @@ ], 'variables': { 'chromium_code': 1, + # Disable schema compiler to generate model extension API code. + # Only register the extension functions in extension system. + 'non_compiled_schema_files': [ + 'adview.json', + 'browsing_data.json', + 'chromeos_info_private.json', + 'extension.json', + 'idltest.idl', + 'infobars.json', + 'media_player_private.json', + 'music_manager_private.idl', + 'preferences_private.json', + 'principals_private.idl', + 'top_sites.json', + ], 'conditions': [ ['OS!="android"', { 'schema_files': [ 'activity_log_private.json', - 'adview.json', 'alarms.idl', 'app_current_window_internal.idl', 'app_runtime.idl', @@ -33,9 +47,7 @@ 'bookmark_manager_private.json', 'bookmarks.json', 'braille_display_private.idl', - 'browsing_data.json', 'cast_channel.idl', - 'chromeos_info_private.json', 'cloud_print_private.json', 'command_line_private.json', 'content_settings.json', @@ -55,7 +67,6 @@ 'experimental_discovery.idl', 'experimental_history.json', 'experimental_identity.idl', - 'extension.json', 'feedback_private.idl', 'file_browser_private.json', 'file_system.idl', @@ -66,9 +77,7 @@ 'identity.idl', 'identity_private.idl', 'idle.json', - 'idltest.idl', 'image_writer_private.idl', - 'infobars.json', 'input_ime.json', 'location.idl', 'management.json', @@ -76,17 +85,13 @@ 'mdns.idl', 'media_galleries.idl', 'media_galleries_private.idl', - 'media_player_private.json', 'metrics_private.json', - 'music_manager_private.idl', 'networking_private.json', 'notifications.idl', 'omnibox.json', 'page_capture.json', 'permissions.json', 'power.idl', - 'preferences_private.json', - 'principals_private.idl', 'push_messaging.idl', 'runtime.json', 'serial.idl', @@ -108,7 +113,6 @@ 'tabs.json', 'terminal_private.json', 'test.json', - 'top_sites.json', 'usb.idl', 'virtual_keyboard_private.json', 'web_navigation.json', |