Questions tagged [buck]

Buck is a build system developed and used by Facebook. It encourages the creation of small, reusable modules consisting of code and resources, and supports a variety of languages on many platforms.

Buck is a super-fast build system that encourages the creation of small, reusable modules over a variety of platforms and languages.

It is used at Facebook to build the Facebook's main Android app, Messenger, and Instagram as well as internal infrastructure at Facebook. The Gerrit project also uses it.

112 questions
1
vote
0 answers

How to link shared cxx_library to cxx_binary with mingw compiler in Buck?

I'm trying to cross compile Windows shared library and binary linked to this shared library with Buck. I set toolchain paths in .buckconfig: [mingw] prefix = /usr/local/bin/i686-w64-mingw32 [cxx] cc = $(config mingw.prefix)-gcc cpp = $(config…
kolen
  • 2,752
  • 2
  • 27
  • 35
1
vote
0 answers

Loading Annotation Processors as plugins in BUCK

I am exploring the usage of annotation processors using Buck for android. It doesn't give me the annotated elements every time when something changes in the java library. I've used it as a plugin - android_library(..., plugins =…
rahul.taicho
  • 1,339
  • 1
  • 8
  • 18
1
vote
1 answer

Reading the result of a Buck genrule into Buck

I am trying to use buck to build leveldb. LevelDB has a script that generates some platform-specific flags. I can call the script from Buck using a genrule, but now I need to extract some of the flags from the output. genrule( name =…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
1
vote
1 answer

How do cells work in Buck?

I understand that there is an undocumented feature in buck called cells. There are some tests that demonstrate how they work, but is there any more written information about them? How do cells work in Buck?
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
1
vote
1 answer

Custom list in .buckconfig?

I would like to have a property in my .buckconfig that is a custom list of strings. From the docs, I understand that this is supported. Here is my .buckconfig: [custom] key = a b c Here is my BUCK file (for testing): print…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
1
vote
0 answers

Letting buck test find libjvm.so in Buck managed C++ project

I am facing the following linker error in a Buck managed C++ project: /usr/src/hbase/hbase-native-client/buck-out/gen/core/mini-cluster-test#compile-mini-cluster-test.cc.ob19eb5e6,default/mini-cluster-test.cc.o: In function…
Ted
  • 379
  • 1
  • 5
  • 18
1
vote
1 answer

How do I download Buck remote files in a Homebrew formula?

I am trying to write a homebrew formula for my Java project. I am using buck to build the project, which requires some jar files to be downloaded from Maven. For example, my BUCK file has: remote_file( name = 'guava-jar', out =…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
1
vote
1 answer

What does // refer to when you have nested Buck projects?

I am using Buck to build my project, but I have a complicated folder structure due to the use of Git submodules. My project layout looks like this: + root +-- .buckconfig // X +-- BUCK // A +-- main.cpp +--+ library // Git Submodule! +--…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
1
vote
1 answer

Is it possible for a cxx_library to export preprocessor macros?

I am using buck to build some C++ code. I have a library (not my own!) that sets some preprocessor macro that are required by another library (not my own!). Does Buck provide a way for modules to export preprocessor macros? For example, library A…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
1
vote
1 answer

Issue with OkBuck and Realm

My build and APK are successfully generated, but when I run the app an error is raised, forcing close the app. If I build the same dependencies with Gradle, not using OkBuck, it runs perfectly. Logcat: E/AndroidRuntime( 3447): FATAL EXCEPTION:…
1
vote
1 answer

Does Buck allow prebuilt Cxx libraries to have multiple library files?

I have a large library built out of multiple .dylib files, which I would like to import as one prebuilt_cxx_library. However, the command only allows a string for the lib_name. What is the recommended way to include a large third-party library with…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
1
vote
0 answers

Running android unit test with Buck

I have configured a project with Buck, I can build without problems, for example using: buck install But I can not run the unit tests, Buck documentation says: buck test --all But this returns: No tests to run This is my project: Project Root …
Gaston Flores
  • 2,457
  • 3
  • 23
  • 42
1
vote
1 answer

buck build failed by constant expression required error

I am trying to convert my Android Gradle project into Buck by using okbuck. However when I build the project, a lot of constant expression required errors break the building process. I understand I could replace the "switch" statement with "if" to…
Yi Chai
  • 145
  • 5
  • 14
1
vote
1 answer

facebook buck & NDK issues

i am new to buck, but i am trying to getbuck running (because i wanted to start working with nuclide). Well, wenn i try to run buck --versionit already gives me this output. BUILD FAILED: Failed to read NDK version from…
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
1
vote
1 answer

Java file generated by a genrule not included into compiling procedure

I face a problem in buck gen_rule usage. I have a executable jar file, called SqlDelightBin, which could generate Java source files, during gradle build process, there will be a gradle task to run this jar file, and the generated Java files could be…
Piasy
  • 989
  • 13
  • 35