-
-
Save attilaolah/dae49b15f4e9645782c3263df60a4833 to your computer and use it in GitHub Desktop.
bazel build jq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
licenses(["notice"]) | |
cc_binary( | |
name = "jq", | |
visibility = ["//visibility:public"], | |
srcs = glob([ | |
"*.h", | |
"*.c", | |
]), | |
copts = [ | |
"-std=gnu99", | |
"-Wextra", | |
"-Wall", | |
"-Wno-missing-field-initializers", | |
"-Wno-unused-variable", # Shows up if you build in opt mode | |
"-Wno-unused-parameter", | |
"-Wno-unused-function", | |
], | |
linkopts = [ | |
"-ldl", | |
], | |
# All these defines can be reproduced by running configure and looking at | |
# confdefs.h at the end of config.log | |
defines = [ | |
"PACKAGE_NAME=jq", | |
"PACKAGE_TARNAME=jq", | |
"PACKAGE_VERSION=1.6", | |
"PACKAGE_STRING=jq=1.6", | |
"PACKAGE_BUGREPORT=https://github.com/stedolan/jq/issues", | |
"PACKAGE_URL=https://stedolan.github.io/jq", | |
"PACKAGE=jq", | |
"VERSION=1.6", | |
"STDC_HEADERS=1", | |
"HAVE_SYS_TYPES_H=1", | |
"HAVE_SYS_STAT_H=1", | |
"HAVE_STDLIB_H=1", | |
"HAVE_STRING_H=1", | |
"HAVE_MEMORY_H=1", | |
"HAVE_STRINGS_H=1", | |
"HAVE_INTTYPES_H=1", | |
"HAVE_STDINT_H=1", | |
"HAVE_UNISTD_H=1", | |
"HAVE_DLFCN_H=1", | |
"LT_OBJDIR=.libs/", | |
"HAVE_MEMMEM=1", | |
"HAVE_MKSTEMP=1", | |
"HAVE_ALLOCA_H=1", | |
"HAVE_ALLOCA=1", | |
"HAVE_ISATTY=1", | |
"HAVE_STRPTIME=1", | |
"HAVE_STRFTIME=1", | |
"HAVE_TIMEGM=1", | |
"HAVE_GMTIME_R=1", | |
"HAVE_GMTIME=1", | |
"HAVE_LOCALTIME_R=1", | |
"HAVE_LOCALTIME=1", | |
"HAVE_GETTIMEOFDAY=1", | |
"HAVE_TM_TM_GMT_OFF=1", | |
"HAVE_ACOS=1", | |
"HAVE_ACOSH=1", | |
"HAVE_ASIN=1", | |
"HAVE_ASINH=1", | |
"HAVE_ATAN2=1", | |
"HAVE_ATAN=1", | |
"HAVE_ATANH=1", | |
"HAVE_CBRT=1", | |
"HAVE_CEIL=1", | |
"HAVE_COPYSIGN=1", | |
"HAVE_COS=1", | |
"HAVE_COSH=1", | |
"HAVE_DREM=1", | |
"HAVE_ERF=1", | |
"HAVE_ERFC=1", | |
"HAVE_EXP10=1", | |
"HAVE_EXP2=1", | |
"HAVE_EXP=1", | |
"HAVE_EXPM1=1", | |
"HAVE_FABS=1", | |
"HAVE_FDIM=1", | |
"HAVE_FLOOR=1", | |
"HAVE_FMA=1", | |
"HAVE_FMAX=1", | |
"HAVE_FMIN=1", | |
"HAVE_FMOD=1", | |
"HAVE_FREXP=1", | |
"HAVE_GAMMA=1", | |
"HAVE_HYPOT=1", | |
"HAVE_J0=1", | |
"HAVE_J1=1", | |
"HAVE_JN=1", | |
"HAVE_LDEXP=1", | |
"HAVE_LGAMMA=1", | |
"HAVE_LOG10=1", | |
"HAVE_LOG1P=1", | |
"HAVE_LOG2=1", | |
"HAVE_LOG=1", | |
"HAVE_LOGB=1", | |
"HAVE_MODF=1", | |
"HAVE_LGAMMA_R=1", | |
"HAVE_NEARBYINT=1", | |
"HAVE_NEXTAFTER=1", | |
"HAVE_NEXTTOWARD=1", | |
"HAVE_POW10=1", | |
"HAVE_POW=1", | |
"HAVE_REMAINDER=1", | |
"HAVE_RINT=1", | |
"HAVE_ROUND=1", | |
"HAVE_SCALB=1", | |
"HAVE_SCALBLN=1", | |
"HAVE_SIGNIFICAND=1", | |
"HAVE_SIN=1", | |
"HAVE_SINH=1", | |
"HAVE_SQRT=1", | |
"HAVE_TAN=1", | |
"HAVE_TANH=1", | |
"HAVE_TGAMMA=1", | |
"HAVE_TRUNC=1", | |
"HAVE_Y0=1", | |
"HAVE_Y1=1", | |
"HAVE_YN=1", | |
"HAVE___THREAD=1", | |
"IEEE_8087=1", | |
"HAVE_LIBONIG=1", | |
], | |
includes = ["."], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment