Skip to content

Commit

Permalink
Only static library in new example
Browse files Browse the repository at this point in the history
  • Loading branch information
franramirez688 committed Sep 29, 2023
1 parent 77eb050 commit 5b3dbba
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions conan/internal/api/new/bazel_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
class {{package_name}}Recipe(ConanFile):
name = "{{name}}"
version = "{{version}}"
package_type = "library"
package_type = "static-library"
# Binary configuration
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False], "fPIC": [True, False]}
default_options = {"shared": False, "fPIC": True}
options = {"fPIC": [True, False]}
default_options = {"fPIC": True}
# Sources are located in the same place as this recipe, copy them to the recipe
exports_sources = "main/*", "WORKSPACE"
Expand All @@ -24,10 +24,6 @@ def config_options(self):
if self.settings.os == "Windows":
self.options.rm_safe("fPIC")
def configure(self):
if self.options.shared:
self.options.rm_safe("fPIC")
def layout(self):
bazel_layout(self)
Expand Down

0 comments on commit 5b3dbba

Please sign in to comment.