aboutsummaryrefslogtreecommitdiffstats
path: root/slang_rs_reflect_utils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Style violation cleanup.Stephen Hines2012-02-241-1/+1
| | | | Change-Id: Idb127f2fd6e637039454f47299360aec5a4edfe8
* Remove obsolete/confusing options and fix strings.Stephen Hines2011-09-021-1/+1
| | | | Change-Id: I26b5eeea7ddc8cc4984745daa52635ea95ad7c66
* Support Windows paths in slang.Raphael2011-02-081-6/+7
| | | | Change-Id: I5240164d1d83f7816973a0e6ee9c26e337e605b1
* Improve code style.Stephen Hines2010-11-101-1/+3
| | | | Change-Id: I26e043849bce2a4b41ae132fbe0c882f4a6f112f
* Prepend legal announcement in all files.Zonr Chang2010-10-121-0/+16
| | | | Release libslang/llvm-rs-cc/llvm-rs-link under Apache 2.0 license.
* Use llvm::sys::Path to implement "mkdir -p".Zonr Chang2010-10-081-34/+5
| | | | Change-Id: I3bb36e1a8050bbd9744fd02935b6186d2f285015
* The dep file uses the .rs stem, instead of the .bc stem.Ying Wang2010-10-071-0/+16
| | | | | | | | The .bc file stem could be transformed over the source .rs file name by slang. The build system needs to know the dep file name before slang is run, so we'd like to take the source .rs file name, which is known before slang is run. Change-Id: I54c18880582fcc0f177a289b7a6a0f92a5a7806c
* Remove warnings from slang build.Stephen Hines2010-10-061-1/+1
| | | | Change-Id: I6c3f3e9aae24b612a6d32b4fc5ba53a2ef7f3944
* More coding style fixing to improve the readability. No actual semanticszonr2010-10-051-28/+29
| | | | changed. This also makes cpplint happy.
* Change rules for RS name reflection.Stephen Hines2010-09-161-10/+6
| | | | | | | | | | We now keep any alphanumeric or underscore characters unchanged for the classname. Nonmatching characters (like hyphens) get stripped out (as they were previously). We no longer camel-case the reflected names. Resource names are converted to lowercase, since that is a system requirement. Change-Id: Idf7a7c3f9442bb58789769d58088c2038a074455
* Handle big bitcode files.Ying Wang2010-09-091-62/+139
| | | | | | Split the bitcode file into segments due to Java method size limitation. Change-Id: I4c171c40a45067da63098deb2408449dab38b041
* Add #include <cstring> to fix the build.Mike Lockwood2010-09-081-0/+1
| | | | | Change-Id: I2e7f74bfa29d341447a5f7a2aff8c68fef8d968c Signed-off-by: Mike Lockwood <lockwood@android.com>
* Encode the bitcode binary files into Java source files.Ying Wang2010-09-071-0/+189
So that the apps don't need to have the bc files as resources. The bitcode java files will be put at the same dir as the reflected java files. The bitcode java file name will be <ClassName>BitCode.java. The bitcode is represented as byte array and you can reference it as: byte[] bitcode = <ClassName>BitCode.getBitCode(); To enable this feature, pass "-s jc" to the command line. The class name <ClassName> is converted from the .rs file name, for example: foo.rs -> FooBitCode.java foo_bar.rs -> FooBarBitCode.java fooBar.rs -> FooBarBitCode.java foobar.rs -> FoobarBitCode.java i.e., any non-alnum characters in the rs file name are filtered and the rest are converted to camel case. The above method is also applied to the reflected java classes now. Change-Id: Idf234d4c017e33740a13d6cd68bc3e14710ec149