-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build openssl for emscripten #6884
Changes from 3 commits
d55af66
d245561
c649384
b42a9c7
058240f
6b3b7f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,8 @@ class OpenSSLConan(ConanFile): | |
"no_asm": [True, False], | ||
"enable_weak_ssl_ciphers": [True, False], | ||
"386": [True, False], | ||
"no_stdio": [True, False], | ||
"no_tests": [True, False], | ||
"no_sse2": [True, False], | ||
"no_bf": [True, False], | ||
"no_cast": [True, False], | ||
|
@@ -172,6 +174,14 @@ def config_options(self): | |
else: | ||
del self.options.fPIC | ||
|
||
if self.settings.os == "Emscripten": | ||
self.options.no_asm = True | ||
self.options.no_deprecated = True | ||
self.options.no_dso = True | ||
self.options.no_threads = True | ||
self.options.no_stdio = True | ||
self.options.no_tests = True | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes it still possible to run:
Should this also be tested in a def validate(self):
if self.settings.or == "Emscripten":
if not all((self.options.no_asm, self.options.no_deprecated, self.options.no_dso, self.options.no_threads, self.options.no_stdio, self.options.no_tests)):
raise ConanInvalidConfiguration("os=Emscripten requires openssl:{no_asm,no_deprecated,no_dso,no_threads,no_stdio,no_tests}=True") There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks, I will add this check There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wondering whether the test should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does my suggestion actually work? Does it block There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is good question! But idk any other sdks that are capable of compiling that complicated code to wasm. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
yes it does |
||
|
||
def build_requirements(self): | ||
if tools.os_info.is_windows: | ||
if not self._win_bash: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add default values to
default_options
as well.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind. Openssl does this with a loop.