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
40
votes
4 answers

Buck vs Gradle, pro's and cons for Android build systems

I'm currently using ant to build Android projects but it simply doesn't cut it for larger projects and maintaining different deliverables is becoming a pain. Two alternatives I'm looking at are Facebook's Buck (http://facebook.github.io/buck/) and…
Geert Weening
  • 1,480
  • 1
  • 13
  • 17
21
votes
2 answers

How can I use buck to build react-native apps for both iOS and Android

Buck sounds like a great tool for both iOS and Android projects but I have not been abel to find any information on how to use it for react-native projects. Update Looks like there is some work being done on this but it may not be recommended…
respectTheCode
  • 42,348
  • 18
  • 73
  • 86
13
votes
1 answer

How can I use BUCK build with a pod that has several files with the same name?

I'm trying to use BUCK with the Realm pod. I've set up my buck file as: apple_pod_lib( name = "Realm", visibility = ["PUBLIC"], exported_headers = glob([ "Realm/**/*.h", "Realm/**/*.hpp", ]), srcs = glob([ …
Guig
  • 9,891
  • 7
  • 64
  • 126
10
votes
1 answer

.buckconfig for ReactNative project

i am playing around with react native. And i read a lot about buckbuild system. Now i am trying to connect those two (in order to get the full potential in nuclide editor). Does anybody have a tip for me how to generate a buckconfig file for an…
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
9
votes
1 answer

brew tap facebook/fb results in Fetching error

I try to update Homebrew as usual. Recently when I issue the command brew update, the following error occurs: Error: Fetching /usr/local/Homebrew/Library/Taps/facebook/homebrew-fb failed! The Tap is associated with the software Buck, which I need…
Raptor
  • 53,206
  • 45
  • 230
  • 366
9
votes
2 answers

How do I use the Facebook Buck building tool with Android Studio?

How do I use the Facebook Buck building tool with Android Studio? The requirement is something like code in android studio but build through buck from command line.
A J
  • 3,684
  • 2
  • 19
  • 24
7
votes
0 answers

React Native Integration testing Android

I'm having trouble understanding how the integration testing runs with android. I went through the documentation and got their sample project set up and I can successfully run tests. However, I am utterly confused on how to put the pieces together…
user2977578
  • 413
  • 5
  • 19
6
votes
1 answer

Google Play Services - Where is SafeParcelable?

Which granular play-services contains the following class? com.google.android.gms.common.internal.safeparcel.SafeParcelable I've currently got the following dependencies, but I get an error where it can't find…
vanguard
  • 147
  • 1
  • 7
5
votes
2 answers

What is the best way to integrate a CMake project into Buck?

I am using Buck for my own C++ project, but I depend on a third-party library that is built using CMake. The CMake file is complex, so I do not think it is practical to recreate their CMake file in Buck. Instead, I would like to call CMake from…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
5
votes
1 answer

Building with Buck on Travis servers

I am trying to build tests with Buck using buck test C++ targets on Travis CI servers (through GitHub), but there are two things that I am not able to figure out. I would have to install Buck on the Travis servers. How can I use OS X servers…
Curious
  • 20,870
  • 8
  • 61
  • 146
5
votes
1 answer

Aggregate output from Annotation Processors of different buck modules

I have a project composed of several BUCK modules. Each module uses the same annotation processor to generate a single file for each annotated class. For the sake of simplicity, for each annotated class: package…
Lior
  • 7,845
  • 2
  • 34
  • 34
5
votes
1 answer

documentation for annotation_processors (buck)

Related to this ticket Parameters for annotation processors are disabled and undocumented How do we use annotation_processors and annotation_processor_deps ? Im using realm in a sample Android app and without the annotations (for @RealmClass and…
Sandeep Chayapathi
  • 1,490
  • 2
  • 13
  • 31
5
votes
0 answers

How to use Dagger 2 with Buck containing lots of buck modules?

My Android Buck project is made up of lots of independent modules. For example, login is its own buck module, some of my large models belong to their own buck module, etc. The problem I'm running into is that if I subclass Application, I'm not sure…
vanguard
  • 147
  • 1
  • 7
4
votes
1 answer

How to properly load a Starlark script into another?

I'm trying to make a very simple implementation with Starlark: greeting.bzl def greet(): print ("Hello World!") test.bzl load (":greeting.bzl", "greet") greet() And execute it with: java -jar Starlark_deploy.jar test.bzl The result of the…
Humble Student
  • 3,755
  • 4
  • 20
  • 35
4
votes
0 answers

Compiling project with buck, claims I have no jdk

I'm still trying to get the selenium open source project to build. As per my last question, downgrading python to 2.7 fixed an initial issue. However, I'm now consistently (tried on two machines) getting an error about the…
Mark Mayo
  • 12,230
  • 12
  • 54
  • 85
1
2 3 4 5 6 7 8