Reputation: 79
I build my project with Buck. How can I add external (not Buck) libs to project?
My example BUCK:
cxx_binary(
name="my_project",
srcs=[
"my_file.cpp",
],
deps=[
"boost_system",
"boost_filesystem",
],
compiler_flags=['-w',
'-Ddef',
'-Ipath',
])
But is error: BUILD FAILED: //my_proj:my_project: parameter 'deps': cannot coerce 'boost_system' to class com.facebook.buck.model.BuildTarget
Upvotes: 3
Views: 930
Reputation: 79
Use prebuilt_cxx_library:
prebuilt_cxx_library(
name="boost_system",
lib_dir='../otherlibs'
)
prebuilt_cxx_library(
name="boost_filesystem",
lib_dir='../otherlibs'
)
and
........
deps=[
":boost_system",
":boost_filesystem",
],
.......
Upvotes: 1