aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/proto
Commit message (Collapse)AuthorAge
...
* Make ProtoSourceFileBlacklist take an explicit list of .proto files to ↵Gravatar Carmi Grushko2016-11-03
| | | | | | | | | | | | blacklist. This is intead of taking an attribute name and reading it inside of the class. Motivation: using proto_lang_toolchain() rules means there's no longer an attribute that points at the blacklist. Instead, we have an attribute that points at the toolchain, which itself points at the blacklist. -- MOS_MIGRATED_REVID=138096096
* ProtoCompileActionBuilder takes a list of ToolchainInvocations instead of a ↵Gravatar Carmi Grushko2016-11-03
| | | | | | | map, to emphasize that order matters. -- MOS_MIGRATED_REVID=138090273
* Use proto_lang_toolchain in java_lite_proto_library.Gravatar Carmi Grushko2016-11-03
| | | | | -- MOS_MIGRATED_REVID=138005602
* ProtoCompileActionBuilder takes ImmutableMap for toolchains, which has a ↵Gravatar Carmi Grushko2016-11-02
| | | | | | | predictable iteration order. -- MOS_MIGRATED_REVID=137864799
* A version of ProtoCompileActionBuilder that uses proto_lang_toolchain() ↵Gravatar Carmi Grushko2016-11-02
| | | | | | | rules instead of a soup of methods. -- MOS_MIGRATED_REVID=137835755
* Introduce proto_lang_toolchain().Gravatar Carmi Grushko2016-10-31
| | | | | | | RELNOTES: New rule: proto_lang_toolchain(), to support LANG_proto_library rules on multiple platforms. -- MOS_MIGRATED_REVID=137550563
* Allow .protodevel files in srcs of proto_library.Gravatar Googler2016-10-18
| | | | | -- MOS_MIGRATED_REVID=136402597
* Extract java/javalite proto compilation args to command-line flags.Gravatar Carmi Grushko2016-10-06
| | | | | | | Addresses https://github.com/bazelbuild/bazel/issues/1718 -- MOS_MIGRATED_REVID=135274306
* Add a common class for filtering proto source files.Gravatar Rumou Duan2016-09-16
| | | | | -- MOS_MIGRATED_REVID=133267681
* Add the repository name as a parameter to the output path functionsGravatar Kristina Chodorow2016-08-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't do anything yet, it's in preparation for the execroot rearranging change. The execroot will have one bazel-out per repo, so it'll look like: execroot/ repo1/ bazel-out/ local-fastbuild/ bin/ repo2/ bazel-out/ local-fastbuild/ bin/ genfiles/ repo3/ bazel-out/ local-fastbuild/ testlogs/ and so on. Thus, any output path (getBinDirectory() & friends) needs to know what the repo name is. This changes so many places in the code I thought it would be good to do separately, then just flip the functionality in the execroot-rearranging commit. While I was poking around, I changed all of the refs I could from getPackageRelativeArtifact() to getBin/GenfilesArtifact(), so that 1) rule implementation don't have to know as much about roots and 2) they'll be more isolated from other output dir changes. `bazel info` and similar just return roots for the main repository. The only "change" is passing around a target label in the Java rules. Continues work on #1262. -- MOS_MIGRATED_REVID=129985336
* Rollback of commit 5ea55cbab969820da346d16c4998e957b8c3f60e.Gravatar Carmi Grushko2016-07-18
| | | | | | | | | | | | | *** Reason for rollback *** Let's launch open-source java_proto_library with strict-deps checking turned on by default. *** Original change description *** Unveil Bazel's proto_library and java_proto_library. -- MOS_MIGRATED_REVID=127716437
* Unveil Bazel's proto_library and java_proto_library.Gravatar Carmi Grushko2016-07-18
| | | | | -- MOS_MIGRATED_REVID=127543896
* Open-source java_proto_library.Gravatar Carmi Grushko2016-07-12
| | | | | | | RELNOTES: New rule, java_proto_library, to generate Java bindings for protocol-buffers. -- MOS_MIGRATED_REVID=127136894
* --Gravatar Carmi Grushko2016-07-12
| | | | MOS_MIGRATED_REVID=127108931
* Open-source ProtoSupportDataProvider.Gravatar Carmi Grushko2016-07-08
| | | | | -- MOS_MIGRATED_REVID=126850134
* --Gravatar Carmi Grushko2016-06-27
| | | | MOS_MIGRATED_REVID=125790153
* Decrease visibility of createProtoCompilerCommandLine() to private.Gravatar Carmi Grushko2016-05-25
| | | | | -- MOS_MIGRATED_REVID=123119417
* Allow use of Exceptions to exit early out of configured-target creation, ↵Gravatar Chris Parsons2016-05-24
| | | | | | | | | | instead of passing and checking null in all helpers. Demonstrates this pattern usage in a few select rules (e.g. AndroidBinary) where this was particularly egregious. There are many places which can benefit from this pattern -- this change doesn't try to fix them all at once. -- MOS_MIGRATED_REVID=123012378
* Rename setHasServices() to the more appropriate allowServices().Gravatar Carmi Grushko2016-05-05
| | | | | -- MOS_MIGRATED_REVID=121524513
* Add a --legacy_external_runfiles optionGravatar Kristina Chodorow2016-04-25
| | | | | | | | This isn't hooked up to anything yet, but is another piece of getting #848 rolled forward. -- MOS_MIGRATED_REVID=120582973
* Automated [] rollback of commit 857cda2c45a5cc68c3fa398311c48c571a64915d and ↵Gravatar Damien Martin-Guillerez2016-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | commit 790d2f6009d47fe92cf0cd92a1473bbf0141f32e. *** Reason for rollback *** Broke non-Bazel projects on ci.bazel.io Fixes #1168 *** Original change description *** Move the runfiles for external repositories to under the x.runfiles/ directory This also sets the Bazel workspace name to io_bazel_source. Fixes #848. Relevant to #1116, #1124, RELNOTES[INC]: All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles.... *** -- MOS_MIGRATED_REVID=120535721
* Move the runfiles for external repositories to under the x.runfiles/ directoryGravatar Kristina Chodorow2016-04-20
| | | | | | | | | | | | | | | This also sets the Bazel workspace name to io_bazel_source. Fixes #848. Relevant to #1116, #1124, RELNOTES[INC]: All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles. --- Furthermore, if a Bazel project does not provide a workspace name in the WORKSPACE file, Bazel will now default to using __main__ as the workspace name (instead of "", as previously). The repository's runfiles will appear under x.runfiles/__main__/. -- MOS_MIGRATED_REVID=120224534
* Allow the action that calls proto-compiler, to do so using a params file.Gravatar Carmi Grushko2016-04-07
| | | | | | | This allows compilations with very long command lines to succeed. -- MOS_MIGRATED_REVID=119199042
* Clean the API of ProtoCompileAction, in preparation for making the ↵Gravatar Carmi Grushko2016-04-07
| | | | | | | proto-compiler use a params file. -- MOS_MIGRATED_REVID=119193368
* Don't keep implicit reference to ProtoCompileAction in anonymous inner ↵Gravatar Janak Ramakrishnan2016-03-22
| | | | | | | CustomMultiArgv class. -- MOS_MIGRATED_REVID=117761242
* Don't keep implicit reference to ProtoCompileAction.Builder after build() is ↵Gravatar Janak Ramakrishnan2016-03-21
| | | | | | | called. -- MOS_MIGRATED_REVID=117689886
* Contractually document BuildConfiguration.Fragment as immutable and strengthenGravatar Greg Estren2016-02-01
| | | | | | | | | | | | | | | the immutability interfaces of existing implementations. Eventually we want all implementations to comply, but right now CppConfiguration is a glaring exception due to FDO/LIPO support. We don't want more exceptions to arise. This is prep work for pre-trimming ConfigurationFragment.key's BuildOptions input to just the options needed by the fragment. That implies fragments can be shared across configurations, so that needs to be safe. -- MOS_MIGRATED_REVID=113408041
* Remove unused ${SYNOPSIS} variable from Bazel native rule inline documentation.Gravatar David Chen2016-01-28
| | | | | | | | | | This variable is no longer used because the docgen template directly calls RuleDocumentationAttribte.getSynopsis() instead of using the SYNOPSIS variable, and RuleDocumentationAttribute.getHtmlDocumentation() resolves the SYNOPSIS variable to the empty string. -- MOS_MIGRATED_REVID=113249993
* Remove unused ${ATTRIBUTE_DEFINITION} and ${ATTRIBUTE_SIGNATURE} variables fromGravatar David Chen2016-01-25
| | | | | | | | | Bazel native rule inline documentation. These variables are no longer used because the docgen templates now directly generate the table of attributes instead of using ATTRIBUTE_DEFINITION and call RuleDocumentation.getAttributeSignature() instead of using ATTRIBUTE_SIGNATURE. RuleDocumentation.getHtmlDocumentation() currently resolves both of these variables to the empty string. -- MOS_MIGRATED_REVID=112933659
* Allow filtering out some extra-actions related to Java proto compilation.Gravatar Carmi Grushko2016-01-22
| | | | | -- MOS_MIGRATED_REVID=112709717
* Add convenience methods to register a proto compile action.Gravatar Carmi Grushko2015-12-30
| | | | | -- MOS_MIGRATED_REVID=111032954
* Move annotation classes used for referencing framework Java classes from ↵Gravatar John Field2015-12-16
| | | | | | | | | | | | | | Skylark into their own package. This allows, e.g., classes in the syntax package to access classes in the cmdline package without creating circular dependencies. While we're here: - Removed a couple of unused BUILD deps flagged in []. - Updated SkylarkRuleImplementationFunctionsTest to remove non-ASCII characters and clarify the intent of the test. -- MOS_MIGRATED_REVID=110360763
* Open-source code that creates proto-buffer compile actions.Gravatar Carmi Grushko2015-12-13
| | | | | -- MOS_MIGRATED_REVID=110008191
* Open-source a support data-structure for protocol buffers.Gravatar Carmi Grushko2015-12-10
| | | | | -- MOS_MIGRATED_REVID=109900770
* Open-source command-line options specific to protocol buffer.Gravatar Carmi Grushko2015-12-10
| | | | | -- MOS_MIGRATED_REVID=109897602
* Migrate ProtoSourcesProvider to @AutoValue.Gravatar Carmi Grushko2015-12-07
| | | | | | | As a prerequisite, AnalysisUtils.checkProvider now accepts non-final classes, as long as they have a private/package-private parameterless constructor, which offers similar protection - the provider can't be subclassed outside of its package. -- MOS_MIGRATED_REVID=109447292
* Change ProtoSourcesProvider to only export direct sources. Add a method, ↵Gravatar Michael Thvedt2015-11-10
| | | | | | | getCheckDepsProtoSources(), to get any indirect sources from alias library cases. -- MOS_MIGRATED_REVID=107395192
* Expose proto sources in the Skylark providerGravatar Laurent Le Brun2015-09-28
| | | | | -- MOS_MIGRATED_REVID=103947930
* Rationalize copyright headersGravatar Damien Martin-Guillerez2015-09-25
| | | | | | | | | | | The headers were modified with `find . -type f -exec 'sed' '-Ei' 's|Copyright 201([45]) Google|Copyright 201\1 The Bazel Authors|' '{}' ';'` And manual edit for not Google owned copyright. Because of the nature of ijar, I did not modified the header of file owned by Alan Donovan. The list of authors were extracted from the git log. It is missing older Google contributors that can be added on-demand. -- MOS_MIGRATED_REVID=103938715
* Move Label from the lib.syntax to the lib.cmdline package so that:Gravatar Lukacs Berki2015-09-21
| | | | | | | | | | - Label parsing can be simplified - lib.syntax is only contains the code for Skylark and is reasonably independent from the problem domain of building things This change is mostly only changes to imports declarations. The rest is reversing the dependency between :cmdline and :syntax and moving a tiny amount of code between Printer and FilesetEntry and the addition of SkylarkPrintableValue that I couldn't be bothered to separate out into its own change. -- MOS_MIGRATED_REVID=103527877
* Separate build-specific types and types inherent to Skylark.Gravatar Lukacs Berki2015-09-21
| | | | | -- MOS_MIGRATED_REVID=103374106
* Rollforward of [], which was rolled back in []. Cleans up support for ↵Gravatar Michael Thvedt2015-09-14
| | | | | | | objc_proto_library with native proto_library. -- MOS_MIGRATED_REVID=102962083
* Rollback of commit 17e9d7cd408eee1e4e73a1fe6f76917954475937.Gravatar Carmi Grushko2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102299629
* Turn Bazel proto_library on for objc_proto_library.Gravatar Michael Thvedt2015-09-04
| | | | | -- MOS_MIGRATED_REVID=102294703
* Add a BazelProtoLibrary representing a collection of .proto files.Gravatar Michael Thvedt2015-09-02
| | | | | -- MOS_MIGRATED_REVID=102079110
* Move common proto functions into a new open-source class, ProtoCommon, in ↵Gravatar Michael Thvedt2015-09-02
| | | | | | | preperation for BazelProtoLibrary. -- MOS_MIGRATED_REVID=102070904
* Skylark: Expose proto providers in a cleaner way.Gravatar Laurent Le Brun2015-06-01
| | | | | | | | | | | Example: for target in ctx.attr.deps: print(target.proto.sources) print(target.proto.transitive_imports) print(target.proto.transitive_sources) -- MOS_MIGRATED_REVID=94747961
* Expose Proto providers to Skylark for experimentation.Gravatar Laurent Le Brun2015-05-22
| | | | | | | Providers are still experimental, we'll document them properly later. -- MOS_MIGRATED_REVID=94274960
* Update from Google.Gravatar Han-Wen Nienhuys2015-02-25
-- MOE_MIGRATED_REVID=85702957