History log of /system/tools/aidl/options.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
303b43ca5a93ce89f438ad4dd200c0ca317832de 21-Apr-2016 Christopher Wiley <wiley@google.com> Generate a trivial dep file for parcelables

It turns out that the SDK tools request this.

This is a cherry-pick of b1bbdf80cb9fcd8181aa2cb326317929cfac890c.

Bug: 28091660
Change-Id: Iba08f116086953d01c0383f4e26049b2ddfe9b29
Test: unittests pass, added another
/system/tools/aidl/options.h
8f314b0d4c3f195c98c6dd7e671fc2b9d4bfa76f 12-Apr-2016 Christopher Wiley <wiley@google.com> Output correct dependency file with only output dir

This is a cherry-pick of f813619816eb56fd852b6e567bf8b1e79442e3e1.

There are three ways aidl can decide on the path to write
generated java:
- A literal output path
- Writing output next to the input (no output directory given)
- Writing output to an output directory

Fix a bug where we were writing an incorrect dependency file in the
last case, where we are given an output directory, but no output path.

Bug: 28091660
Change-Id: I7fa743c6f32292e44439b7dc3ce7e49421b93d05
Test: added a unittest
/system/tools/aidl/options.h
0a62067f35e957493bc37c4b42dfdcfc16353831 04-Dec-2015 Elliott Hughes <enh@google.com> Track base/ -> android-base/ change.

Change-Id: I02b64b42c17d248c5fb2c4de4b0778a441e018e3
/system/tools/aidl/options.h
c1f39b4ea30e7313eeb7f3d3fd5ec66ba00f2bb5 24-Nov-2015 Casey Dahlin <sadmac@google.com> Refactor top-level AST nodes v2

The previous version of this patch was tainted by parts of another
change to remove a memory leak, and ended up trying to treat a bare
pointer like a unique_ptr in a few places. This combines both changes in
to one.

Previous patch was b696437d842d59c0cc26411fa3d71cb91897c572:

We now return an AidlDocument from parsing. This type is non-polymorphic
and contains either a vector of parcelables or an interface. This gets
rid of all of our reinterpret_cast calls and the public item_type field.

Change-Id: I77fbb1d8448343bd02484d896289a514d636df25
Test: Unit tests pass
Bug: none
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/options.h
eedb29f028af472b90fa528c84d0d89100346e5c 24-Nov-2015 Bart Sears <bsears@google.com> Revert "Refactor top-level AST nodes"

This reverts commit b696437d842d59c0cc26411fa3d71cb91897c572.

Change-Id: Id5c716536299cfad4d13c5891d9be8b1fa2aceae
/system/tools/aidl/options.h
b696437d842d59c0cc26411fa3d71cb91897c572 17-Nov-2015 Casey Dahlin <sadmac@google.com> Refactor top-level AST nodes

We now return an AidlDocument from parsing. This type is non-polymorphic
and contains either a vector of parcelables or an interface. This gets
rid of all of our reinterpret_cast calls and the public item_type field.

Change-Id: Ia15ace677f79a153f8ebfad84ed43b08f4a3685f
Test: unit and integration tests pass
Bug: 25479378
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/options.h
632801d891bd269badc780ab5f0f08e56e6df10a 05-Nov-2015 Christopher Wiley <wiley@google.com> Respect aidl's -b flag again

This flag indicates that we should (or not) report errors on
encountering a parcelable in an input .aidl file. In the platform
build we always break on parcelables, since we only get called with
interface definitions.

We need to obey this in order to not break Android studio's usage.
There, developers expect to put *all* .aidl files into aidl and have it
only generate code where appropriate.

Bug: 25501507
Test: unit tests

Change-Id: I91df9b0ef65d4d063a7a898a5948d0429af3e255
/system/tools/aidl/options.h
19059cb70c5330787ba88f3860444e6da3ef3ca0 06-Nov-2015 Christopher Wiley <wiley@google.com> Generate a dependency file for C++ output

Bug: 23600457
Test: unittests, added another

Change-Id: Ic1834badc396d444057a58f3868bcf343dcc933d
/system/tools/aidl/options.h
ef4132c27c313d9c84faf77a84a4ac97f69445b3 06-Nov-2015 Christopher Wiley <wiley@google.com> Remove Java dependencies of dep file generation

Bug: 23600457
Test: unittests continue to pass

Change-Id: Ifd4ce4f4141f7c2a3b5c9c8223230008bc7f5bb7
/system/tools/aidl/options.h
054afbd3037addb4f2e245ecbc36f31d3040f877 17-Oct-2015 Christopher Wiley <wiley@google.com> Change C++ output to match make expectations

- generate a single C++ output file
- put headers into an output directory
- create the output directory structure using an IoDelegate

Bug: 23599697
Test: Unittests pass

Change-Id: I0f7b821678cd5adc00b2fdba06b52b235c724467
/system/tools/aidl/options.h
0edf34239909bbc16e884ea2517e5f3398185d0f 07-Oct-2015 Casey Dahlin <sadmac@google.com> Replace import_info struct with AidlInfo class

We extend this from AidlNode because we hope to make it part of the tree
someday instead of a second item of global state to register with the
parser.

Test: Unit tests
Bug: 24195596
Change-Id: I678a002855808469b08e726258b4daf13e3f6f00
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/options.h
4432ccfb09ae2c28e42b9c4c58f0e2c2c5a3ba7a 19-Sep-2015 Christopher Wiley <wiley@google.com> Calculate C++ output file names from commandline args

Test: unittests
Bug: 24220933

Change-Id: I59c32d7a27241776181c0f707082b5433b7b7005
/system/tools/aidl/options.h
eb1acc1cf7dbf578d8ab2e596982c4c635aa9865 16-Sep-2015 Christopher Wiley <wiley@google.com> Refactor compile_aidl flow to support compiling C++

Bug: 23599760
Test: unittests

Change-Id: Id6cbe6ea8161be6ebf449e47b3934993e6b6ad13
/system/tools/aidl/options.h
a590de8d148bb42aa5f1f32aec6faae18a28e720 16-Sep-2015 Christopher Wiley <wiley@google.com> Define aidl-cpp executable

This executable has a distinct usage which reflects that it generates
a very different sort of code.

Bug: 23599341
Test: unittests pass, added new Options unit test

Change-Id: I6750e7146949659a3af0246ad1bca0fa23afb2d5
/system/tools/aidl/options.h
89eaab56f3ff913c247397b858fac3c8d3d4a206 15-Sep-2015 Christopher Wiley <wiley@google.com> Rename Options to JavaOptions

The aidl command line interface exposes a lot of knobs that
are not used in practice and complicate the internal logic to support.
For C++ generation we have an opportunity to reduce the exposed surface.

Begin by renaming Options to a more specific JavaOptions.

Test: unittests pass
Bug: 23599341

Change-Id: I76478ab2fb12612bf7120a1af28c8db1da9ed22f
/system/tools/aidl/options.h
d93c5b761bf5a53b23a1f0ab954fa38109e72043 14-Sep-2015 Christopher Wiley <wiley@google.com> Clean up options parsing logic a little bit

We're about to add support for asking for C++ output.
Make this a little less tedious and flesh out the unittests a little.

Bug: 23599341
Test: unittests

Change-Id: Ie08414db43b48ae1a90640260b0badf4c4eb60f8
/system/tools/aidl/options.h
8f8cc9b91a8d0b4942a978e9d2edc5337503d583 14-Sep-2015 Christopher Wiley <wiley@google.com> Follow style guide for Options field naming

Bug: 23599341
Test: unittests

Change-Id: I113810186e67efe7ef657195664e683ab55e829f
/system/tools/aidl/options.h
4427d8654985209c1ebf2fb4705bb3e1a4262be2 14-Sep-2015 Christopher Wiley <wiley@google.com> Basic cleanup of parsed options

1) Turn it into a proper C++ object
2) Don't leak Options objects
3) Don't mutate Options objects
4) clang-format -style=Google -i options.cpp

Bug: 23599341
Test: unittests

Change-Id: I06597dd21e94ff391a08ea1bdb8f3a526123b3dc
/system/tools/aidl/options.h
3616d138056b61bd151820b9799820b70d797061 01-Sep-2015 Christopher Wiley <wiley@google.com> aidl: Separate aidl logic into its own static library

Compile aidl's logic into a static library that can be
linked against both the unittest binary and the executable. Validate
that this is working by writing a basic unittest against options
parsing.

Provide default values for Options struct members. These were
previously taking on values according to the the bits in the memory
allocated to hold them for preprocessed inputs.

Bug: 23516947
Change-Id: Ib57cd7f473995f7851d788deac39f9c4d9018e8f
Test: compiles and unittests pass
/system/tools/aidl/options.h
89e3586afa180230fa999d4287df90df9d066cef 30-Aug-2015 Christopher Wiley <wiley@google.com> aidl: Pull main() into dedicated file

This separates the main() entry point from the functionality we're
hoping to test. While here, redo the header guards to be consistent
accross the codebae.

Bug: 23516947
Change-Id: I61666126bdba0941f14bd0f031caaa30367b864a
Test: Compiles
/system/tools/aidl/options.h
9f4c7ae970a27bcf081d838671b4f4d7505861b3 24-Aug-2015 Christopher Wiley <wiley@google.com> Do not merge namespaces

It is good practice to not include the whole std:: namespace into
the global namespace. This is doubly true in headers.

TEST=aidl compiles

Change-Id: I910ca8082f61cce4f23f8564b8a12c2828b75b3c
/system/tools/aidl/options.h
ffa1686a7a8964d1f6e08ee2ab3e5eb42eb5f0b3 24-Jan-2014 Adam Lesinski <adamlesinski@google.com> Revert "Move frameworks/base/tools/ to frameworks/tools/"

This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
/system/tools/aidl/options.h
be354814711cbbb3bcf7467fc69d53fcf9363093 28-Aug-2013 Mike Lockwood <lockwood@google.com> Move frameworks/base/tools/ to frameworks/tools/

Change-Id: I3ffafdab27cc4aca256c3a5806b630795b75d5c8
/system/tools/aidl/options.h
e15d44a49717bad01050d6be4e0da95f34173332 25-Aug-2011 Xavier Ducrohet <xav@android.com> Add new dependency generation option to aidl.

The SDK build system does not provide an output file
and instead uses the -o<FOLDER> option and lets aidl figure
out the intermediary folders that represents the packages,
and the filename based on the input file (and its package).

Because of this the -d<FILE> option to generate a dependency
file is not convenient.

Instead the new option, -a (no parameters), automatically generate
a dependency files next to the output file.

Also, when compiling parcelable aidl files, without the -b option,
a dependency file is still generated. This is used by the SDK build
system since it cannot parse the file separately and instead tries
to compile every .aidl file.
The generation of this dependency file (which shows no output) allows
to know when any type of aidl file has been compiled.

Change-Id: If81dc7e1e0a780592c94d1850a1d1b094d6e7908
/system/tools/aidl/options.h
08148bdff2dd4a1b0417e912812a77651ed2fd6b 18-Mar-2009 Jean-Baptiste Queru <jbq@google.com> Merge commit 'remotes/korg/cupcake' into merge

Conflicts:
core/java/android/view/animation/TranslateAnimation.java
core/jni/Android.mk
core/res/res/values-en-rGB/strings.xml
libs/audioflinger/AudioFlinger.cpp
libs/surfaceflinger/LayerScreenshot.cpp
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
deec691c864b4fed7ae7f72ea2960b8470377cb6 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
/system/tools/aidl/options.h
e42b5f5731dcaad89cf7883bd29e16bd74c96dd8 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/tools/aidl/options.h
3f063e539d2b8dc82a130c4322cdf93f2f1a9874 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/tools/aidl/options.h
ccace32924e2d6f72c345cfbce8724eade9566a2 21-Oct-2008 Alexey Zaytsev <alexey.zaytsev@gmail.com> Add a few missing headers

Fixes build with gcc 4.3.2

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
/system/tools/aidl/options.h
46c012c3806a4b5c5c46539ea5070cc56e1bdb4b 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/system/tools/aidl/options.h