Skip to content

Commit

Permalink
Make BUILD file use generated version.h target rather than one that e…
Browse files Browse the repository at this point in the history
…xists in the source directory (#95)
  • Loading branch information
AdamDorwart authored and jredmondson committed Sep 24, 2018
1 parent 54629f9 commit 4e577bb
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ DEPS = [
"include/madara/kats/*",
"include/pugi/*",
"include/**/java/*",
"include/madara/Version.h",
],
) + ["include/madara/Version.h"] +
) + [":generate_version"] +
select({
"@bazel_module//bazel_rules:zmq": glob([
"include/madara/transport/zmq/*.cpp",
Expand All @@ -90,8 +91,9 @@ DEPS = [
],
exclude = [
"include/cereal/**/*",
"include/madara/Version.h",
],
) + ["include/madara/Version.h"],
) + [":generate_version"],
copts = ["-w"],
defines = [
"MADARA_FEATURE_SIMTIME",
Expand Down Expand Up @@ -174,13 +176,19 @@ cc_library(
"include/madara/cid/*",
"include/madara/kats/*",
"include/pugi/*",
"include/madara/Version.h",
],
) + ["include/madara/Version.h"],
hdrs = glob([
"include/**/*.h",
"include/**/*.inl",
"include/**/*.cpp",
]) + ["include/madara/Version.h"],
) + [":generate_version"],
hdrs = glob(
[
"include/**/*.h",
"include/**/*.inl",
"include/**/*.cpp",
],
exclude = [
"include/madara/Version.h",
],
) + [":generate_version"],
copts = [
"-I external/local_jdk/include",
"-I external/local_jdk/include/linux",
Expand Down

0 comments on commit 4e577bb

Please sign in to comment.