Skip to content
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

Added support for building C/C++ libraries via bob #326

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Conversation

JCash
Copy link
Contributor

@JCash JCash commented Nov 22, 2023

No description provided.

@JCash JCash requested a review from britzl November 22, 2023 14:23
@@ -976,14 +976,12 @@ public boolean accept(File pathname) {
return outputFiles;
}

private void buildExtension(File manifest, Map<String, Object> manifestContext) throws IOException, InterruptedException, ExtenderException {
private List<File> buildExtensionInternal(File manifest, Map<String, Object> manifestContext, List<File> srcDirs, File libraryOut) throws IOException, InterruptedException, ExtenderException {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly same as before, but can override the output library file

LOGGER.info("buildLibrary");
List<File> srcDirs = new ArrayList<>();
srcDirs.add(uploadDirectory);
String libName = String.format(platformConfig.writeLibPattern, manifestContext.get("extension_name"));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making it easy to control the library name from bob

return shouldBuildArtifact("library");
}

private List<File> buildLibraries() throws ExtenderException {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a shortened copy of buildEngine() without the linker step.

Copy link
Contributor

@britzl britzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@JCash JCash merged commit ecbed4a into dev Nov 22, 2023
2 checks passed
@JCash JCash deleted the bob-library-support branch November 22, 2023 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants