diff options
author | fgorski <fgorski@chromium.org> | 2015-07-22 07:29:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-22 14:30:40 +0000 |
commit | 6cc8334b9faf186f4c50035dbf8253b91a58756c (patch) | |
tree | 46dce660bed95b4067d7709dfa34571b159792d6 /components/offline_pages/BUILD.gn | |
parent | 1c2885ba6a8783aaabd86e36045e21743aecca7b (diff) | |
download | chromium_src-6cc8334b9faf186f4c50035dbf8253b91a58756c.zip chromium_src-6cc8334b9faf186f4c50035dbf8253b91a58756c.tar.gz chromium_src-6cc8334b9faf186f4c50035dbf8253b91a58756c.tar.bz2 |
[Offline pages] Generation of enums for the OfflinePageModel actions
BUG=491352
R=nyquist@chromium.org
Review URL: https://codereview.chromium.org/1250473009
Cr-Commit-Position: refs/heads/master@{#339876}
Diffstat (limited to 'components/offline_pages/BUILD.gn')
-rw-r--r-- | components/offline_pages/BUILD.gn | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/components/offline_pages/BUILD.gn b/components/offline_pages/BUILD.gn index 47f6adc..38d1931 100644 --- a/components/offline_pages/BUILD.gn +++ b/components/offline_pages/BUILD.gn @@ -2,6 +2,10 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +if (is_android) { + import("//build/config/android/rules.gni") +} + # GYP: //components/offline_pages.gypi:offline_pages static_library("offline_pages") { sources = [ @@ -40,3 +44,16 @@ source_set("unit_tests") { "//testing/gtest", ] } + +if (is_android) { + java_cpp_enum("offline_pages_enums_java") { + sources = [ + "offline_page_model.h", + ] + outputs = [ + "org/chromium/components/offline_pages/DeletePageResult.java", + "org/chromium/components/offline_pages/LoadResult.java", + "org/chromium/components/offline_pages/SavePageResult.java", + ] + } +} |