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
3
votes
1 answer

Buck and Android Material theme

I am setting up Buck to speed up the build of an Android app. The app uses the Material Theme through the appcompat-v7:21.0.+ library but Buck cannot find the required resources. Any hints? Here is the error output: $ buck build //app/src/main:main…
trauzti
  • 219
  • 1
  • 9
2
votes
0 answers

How can I build SBTUITestTunnel for a Swift app using Buck?

I am trying to use Buck to include the SBTUITestTunnel library in a couple of iOS apps I am working on. This library extends the standard Xcode UI-testing framework to offer additional features such as monitoring network calls. While SBTUITestTunnel…
sfarbota
  • 2,619
  • 1
  • 22
  • 30
2
votes
0 answers

WKWebView process terminates in CI but not locally

WKWebView content processes are crashing 100% of the time when I load pages in unit tests. They run correctly on my development computer, but WKWebView keeps calling webViewWebContentProcessDidTerminate: when I run the tests in continuous…
mrgrieves
  • 567
  • 5
  • 19
2
votes
1 answer

How to add dependencies in BUCK

When I import libraries such as "org.json", I get an error. I know to add the dependencies in POM file if it's a maven project, but it's compiled using BUCK, so how do I add this dependency and it's version in BUCK?
R10
  • 33
  • 6
2
votes
1 answer

Is there a cmake equivalent to BUCK's header_namespace?

The BUCK build tool allows me to define a header namespace for a library. For example, if I have a library called libA, with this directory structure: root include a.h src a.cpp I can set a header_namespace on the library…
Craig
  • 179
  • 3
  • 11
2
votes
2 answers

What are the common platform names in Buck?

I would like to build a cross-platform cxx_library with buck. I have different cpp files for the different platforms. According to the docs, I can handle this using platform_srcs, which is: ...a list of pairs where the first element is an…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
2
votes
1 answer

How do I run a specific test in Buck?

I can run all tests in buck using buck test //... How do I run one specific test?
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
2
votes
1 answer

In Buck, how do I used the output of a genrule as a header for a cxx_library?

I have a genrule that generates a C++ header-file using a proprietary tool. The header is then used in a cxx_library. Looking at code from this presentation, I have tried the following: cxx_library( name = 'my-library', srcs =…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
2
votes
1 answer

How can I link a pre-built library using Buck?

I'm trying to add a prebuilt static lib as a dependency to my iOS project using Buck. With prebuilt_cxx_library, I get it to work fine from the CLI, but when it generates the .xcodeproj file, it fails to add the right headers to the search path, so…
meisel
  • 2,151
  • 2
  • 21
  • 38
2
votes
1 answer

Can I specify Git URLs as dependencies in Buck?

I am using Buck to build a C++ project. I would like to add a Git URL (e.g. git@github.com:owner/project.git) as a dependency so that a build can automatically pull down a library from GitHub. I took a look at remote_file, but that only seems to…
sdgfsdh
  • 33,689
  • 26
  • 132
  • 245
2
votes
0 answers

Buckbuild tutorials (in order to get nuclide and react.native) running

I am developing react native since some time. Now i want to switch from visual studio code to atom. I found the nuclide plugin. Now i am trying to get the full featureset of this ide. But i am stuck at the setup of buckbuild. Actually i have no…
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
2
votes
1 answer

Add static libraries to BUCK file to support React Native iOS dependencies

After installing Nuclide on Atom, Watchman and Buck, I've tried to start working with Buck, but due to limited information on how to start using Buck with React Native, I've been having trouble with my project setup. What I've done so…
Gianni Carlo
  • 2,452
  • 1
  • 15
  • 18
2
votes
2 answers

Build an Android app written in Kotlin using Buck build system

Buck supports building Java-based Android projects. There is a project https://github.com/zserge/buckbone that adds "experimental" Kotlin support but it's far from being usable. Is there a way to build an Android app written in Kotlin using Buck…
atok
  • 5,880
  • 3
  • 33
  • 62
2
votes
1 answer

Build maven project with using buck

I have a problem with BUCK build tool from facebook, when I test it with my old maven project. I have sth like this : -rw-r--r-- 1 piotr users 259 10-03 19:59 BUCK -rw-r--r-- 1 piotr users 235 10-03 19:56 .buckconfig drwxr-xr-x 5 piotr users…
pkruk
  • 809
  • 1
  • 7
  • 24
2
votes
0 answers

java.lang.ClassNotFoundException on android app startup, using BUCK build tool

My app is crashing on startup because a class can't be found, however, I am confused about why that's happening because I've tested on two real devices where it doesn't crash on startup. This is the crash report I'm…
Dasun Cathir
  • 415
  • 1
  • 4
  • 9