Граф коммитов

8 Коммитов

Автор SHA1 Сообщение Дата
dfalcantara@chromium.org 4c482d21dc Let Android port access properly sized images
Depends on assets in http://crrev.com/15136005, which had to be separated because of the trybots.

With the way things are currently set up, Chrome on Android can't access properly
sized image resources:
* The APK only packages the mostly unused 100% resources (none of
  the larger 200% assets)
* The bitmaps don't scale properly when they're converted to Java bitmaps because
  the Java code knows nothing about the resource's expected dimensions on different
  devices
* The Chromium resource loading system doesn't allow us to take advantage of
  Android's resource loading schemes (drawable directories for different screen
  sizes, RTL support, etc.).

Instead of #ifdefing out practically everything in the theme_resources.grd file,
this CL introduces a map between the chromium resource IDs and Android drawables,
allowing us to load up the correctly sized Android assets.

The template system is bootstrapped with the InfoBar and WebsiteSettingsUI icon
assets.

TBR=jochen
BUG=237034,238668

Review URL: https://chromiumcodereview.appspot.com/14772036

git-svn-id: http://src.chromium.org/svn/trunk/src/build@201328 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-05-21 17:32:27 +00:00
cjhopman@chromium.org 05938fc5f8 CheckCallDie: add option to suppress successful output
Some commands that are called by build scripts are particularly verbose
(ant, dex, readelf). For these commands, the output (when successful)
is not useful (unlike javac, for example). Add an option
(suppress_output) to build_util.CheckCallDie to disable printing of
stdout/stderr when the call is successful.

Also, move remaining build scripts in build/android to
build/android/gyp.

NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/13473017

git-svn-id: http://src.chromium.org/svn/trunk/src/build@192409 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-04 23:04:40 +00:00
cjhopman@chromium.org d13f9eb51a Make the build control what library(/ies) to load
At build time, we know what native libraries an apk needs to load.
Instead of requiring those .apks to specify this again in code, instead
generate a .java file containing a list of the libraries to load.

This is done using a pattern similar to resources, content_java is built
with a placeholder NativeLibraries.java (i.e. without an actual value
for its libraries list). The corresponding .class file is not included
in content_java.jar. Then, when building an apk we generate the "real"
NativeLibraries.java (with the real String[]) and include that in the
.apk.

This is designed to also support the component build, where, we will
have to calculate the list of libraries at build time, and sort them in
dependency order (because Android's linker, for some reason, doesn't do
that itself).

BUG=158821
TBR=brettw@chromium.org

Review URL: https://chromiumcodereview.appspot.com/12939021

git-svn-id: http://src.chromium.org/svn/trunk/src/build@191695 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-04-01 23:12:33 +00:00
yfriedman@chromium.org 1b5fbdf8eb Handle LibraryLoader error from the renderer process.
If we fail to load the library in the renderer process, just abort early.
This prevents an extra user-visible dialog that Chrome has crashed. Note
that we currently assume the browser process hits the same error and will
prompt the user. If this only happens for the renderer process we'd end up
with a hung tab, but it's not clear how that would happen.

As part of this, convert the RESULT_CODES enum to be generated from a template so that we can re-use the same values for C++ and Java

BUG=180054


Review URL: https://chromiumcodereview.appspot.com/12464004

git-svn-id: http://src.chromium.org/svn/trunk/src/build@186610 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-07 04:12:13 +00:00
torne@chromium.org a72c5cc9ac Android: use gcc (not cpp) to preprocess templates.
When building the WebView on macs, cpp is a wrapper script around llvm
which does not accept all the same arguments as the cpp that's part of
gcc. Invoke gcc -E instead, which should be guaranteed to accept gcc
arguments (even if it ultimately invokes llvm as well).

BUG=

Review URL: https://codereview.chromium.org/12513008

git-svn-id: http://src.chromium.org/svn/trunk/src/build@186439 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-06 15:11:22 +00:00
newt@chromium.org 3c48b74b88 Generate Java template enums into correct Java package hierarchy
The moves NetError.java (generated from NetError.template) from
out/Debug/gen/templates/org.chromium.net/NetError.java
to
out/Debug/gen/templates/org/chromium/net/NetError.java

This is intended to help IDEs find the generated files.


Review URL: https://chromiumcodereview.appspot.com/12374036

git-svn-id: http://src.chromium.org/svn/trunk/src/build@185702 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-03-02 16:39:08 +00:00
michaelbai@chromium.org d2194c2356 Fixed issue that the change of header file didn't rebuild the template file.
Previous one didn't work because only change files whose extension is same as rule's extension will make the target rebuild.

BUG=170995
TBR=jam,agl


Review URL: https://chromiumcodereview.appspot.com/11929032

git-svn-id: http://src.chromium.org/svn/trunk/src/build@177825 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2013-01-19 04:05:48 +00:00
digit@chromium.org 71f9e06482 build/java_cpp_template.gypi: new build rules.
This patch adds a new .gypi file that allows one to generate Java source
files by parsing template files with the host C pre-processor. The main
use case is the ability to generate Java sources defining constants matching
their C/C++ counterparts.

This is actually a generalisation of the technique that was used in net/net.gyp
to generate a NetError.java source mirroring the definitions found in
net/base/net_error_list.h

BUG=none


Review URL: https://chromiumcodereview.appspot.com/11415152

git-svn-id: http://src.chromium.org/svn/trunk/src/build@172041 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
2012-12-10 12:38:24 +00:00