-
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
fpng: add recipe #22823
base: master
Are you sure you want to change the base?
fpng: add recipe #22823
Conversation
This comment has been minimized.
This comment has been minimized.
#include "fpng.h" | ||
|
||
int main() { | ||
fpng::fpng_init(); |
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.
Inconsistent indentation.
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.
@valgur
Thanks a lot!
Fixed.
Co-authored-by: Martin Valgur <martin.valgur@gmail.com>
Co-authored-by: Martin Valgur <martin.valgur@gmail.com>
This comment has been minimized.
This comment has been minimized.
|
||
def generate(self): | ||
tc = CMakeToolchain(self) | ||
tc.variables["FPNG_SRC_DIR"] = self.source_folder.replace("\\", "/") |
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.
Not worth changing it here, but I generally find it easier to
def export_sources(self):
copy(self, "CMakeLists.txt", self.recipe_folder, os.path.join(self.export_sources_folder, "src"))
That way all of the CMakeLists.txt and source paths work without any prefixing.
The current approach is not wrong either, though, of course.
add_library(fpng ${FPNG_SRC_DIR}/src/fpng.cpp) | ||
set_target_properties(fpng PROPERTIES | ||
PUBLIC_HEADER ${FPNG_SRC_DIR}/src/fpng.h | ||
WINDOWS_EXPORT_ALL_SYMBOLS ON |
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.
I don't see the project build files doing the equivalent, so the recipe should probably simply disable the Windows shared configuration instead.
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.
+1 @toge
Co-authored-by: Martin Valgur <martin.valgur@gmail.com>
Conan v1 pipeline ✔️All green in build 4 (
Conan v2 pipeline ✔️
All green in build 4 (
|
Specify library name and version: fpng/*