summaryrefslogtreecommitdiffstats
path: root/build/jni_generator.gypi
Commit message (Collapse)AuthorAgeFilesLines
* Android: changes the JNI generator to use long by default.bulach@chromium.org2014-02-061-1/+1
| | | | | | | | BUG=317523 Review URL: https://codereview.chromium.org/131883002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249461 0039d316-1c4b-4281-b951-d872f2087c98
* Android: sync up latest JNI generator changes from downstream.bulach@chromium.org2014-01-081-0/+6
| | | | | | | | | | | | | Quite a few changes were made downstream, keep them in sync: - specify the #include files. - inject the common DCHECKs for class and native pointers. - inject the check exception call. BUG= Review URL: https://codereview.chromium.org/115103002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243558 0039d316-1c4b-4281-b951-d872f2087c98
* Have jni_generator.gypi specify include_dirs to dependent targets.blundell@chromium.org2013-12-171-0/+5
| | | | | | | | | | | | Rather than each dependent target of a target that generates jni headers having to specify the appropriate include_dir manually, jni_generator.gypi can do it via direct_dependent_settings. TBR=darin@chromium.org Review URL: https://codereview.chromium.org/111493006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241216 0039d316-1c4b-4281-b951-d872f2087c98
* Android: adds ptr_type to jni_generator.bulach@chromium.org2013-11-051-0/+3
| | | | | | | | | | Allows ptr_type to be configurable. BUG= Review URL: https://codereview.chromium.org/49913003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232858 0039d316-1c4b-4281-b951-d872f2087c98
* Android WebView: add empty jarjar ruleset.torne@chromium.org2013-05-301-0/+7
| | | | | | | | | | | | | | | | | We don't have any jarjar rules yet, but add the empty file now in order that the downstream build can enable jarjar. This way, when rules are added later it will just work, instead of breaking the downstream build temporarily. Also, make sure that when a jarjar rule file is being used, it's considered as an input to the JNI generator step, to make sure the JNI header files get regenerated when the rules change. BUG= Review URL: https://chromiumcodereview.appspot.com/15888011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203141 0039d316-1c4b-4281-b951-d872f2087c98
* Android: allow JNI generator to be used with jarjar.torne@chromium.org2013-05-291-0/+3
| | | | | | | | | | | | | | When using jarjar to rename Java packages to avoid name conflicts, the generated JNI code no longer works as it refers to the old name. Support using the jarjar remapping list during JNI generation to generate code that refers to the post-remapping names, since the JNI headers are not intended to be read by humans anyway. BUG= Review URL: https://chromiumcodereview.appspot.com/15715006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202856 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Change jni_gen_dir to jni_gen_package for jni_generator.yfriedman@chromium.org2013-03-071-3/+3
| | | | | | | | | | | | | With the old name it was getting relativized which is undesirable. See bug for more details. BUG=159133 TBR=ben (nobody really cares about this outside of build/ which cjhopman approved) Review URL: https://chromiumcodereview.appspot.com/12558005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186803 0039d316-1c4b-4281-b951-d872f2087c98
* Add gyp flag to specify whether we should optimize JNI generation.tedchoc@chromium.org2013-02-221-0/+2
| | | | | | | | | | | | | | | | | | Do not regenerate JNI files (and subsequently the .so file) if they have not changed. This will happen if you edit a java file that has a native counterpart, but the native signatures were not touched. We do not enable this all the time as some build systems require that when you modify an input, the output should also be modified. This also will result in more command line output, so we'll keep it behind a developer flag for now. BUG= Review URL: https://chromiumcodereview.appspot.com/12314025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183936 0039d316-1c4b-4281-b951-d872f2087c98
* Android: uses "import" section and inner classes for obtaining qualified JNI ↵bulach@chromium.org2012-11-071-4/+0
| | | | | | | | | | | | | | | | parameters. Rather than explicitly listing all the parameters (see crbug.com/158722), infer almost all of them from the import section and inner classes. Assumes other classes are in the same package as a fallback. BUG=159397 TEST=base/android/jni_generator/jni_generator_tests.py Review URL: https://chromiumcodereview.appspot.com/11363079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166482 0039d316-1c4b-4281-b951-d872f2087c98
* Android: passes a list of qualified JNI parameters as a param to the generator.bulach@chromium.org2012-10-311-0/+4
| | | | | | | | | | | | | | | Instead of hardcoding the list of qualified JNI parameters, pass it as a parameter so that different modules can inject their classes. This is the first step in such decoupling; follow up will start splitting the class_list.jni list closer to their modules. BUG=158722 TEST=jni_generator_tests Review URL: https://chromiumcodereview.appspot.com/11339013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165250 0039d316-1c4b-4281-b951-d872f2087c98
* Uses gyp "rules" rather than "actions" templates for the JNI generator.bulach@chromium.org2012-07-191-40/+42
| | | | | | | | | | | | | | | | | This allow finer grain control over what is rebuilt. Also, since we have approval over the generated header file name, it greatly simplifies both the generator and also all the gyp files as they no longer need to list the header file and keep in sync with the java file, so the process now is as simple as adding a single java file to the sources. BUG=137069 TEST=build on android Review URL: https://chromiumcodereview.appspot.com/10798010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147515 0039d316-1c4b-4281-b951-d872f2087c98
* Add templates for building java and running the jni_generator.yfriedman@chromium.org2012-04-171-0/+56
As requested in http://codereview.chromium.org/10073024/, I've created templates for these two actions. I've also applied them to base. Review URL: http://codereview.chromium.org/10081035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132537 0039d316-1c4b-4281-b951-d872f2087c98