-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #380 from maven-nar/feature/default-binding
Feature default binding supporting multiple bindings static/shared
- Loading branch information
Showing
15 changed files
with
593 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
src/it/it0040-multi-libtype/it0040-dep-lib-default/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
#%L | ||
Native ARchive plugin for Maven | ||
%% | ||
Copyright (C) 2002 - 2014 NAR Maven Plugin developers. | ||
%% | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
#L% | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.github.maven-nar.its.nar</groupId> | ||
<artifactId>it0040-pom</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>it0040-dep-lib-default</artifactId> | ||
<packaging>nar</packaging> | ||
|
||
<name>NAR Executable and default Library</name> | ||
<version>1.0-SNAPSHOT</version> | ||
<description> | ||
Executable depending on a library from a mixed type with default linkage. | ||
</description> | ||
|
||
<properties> | ||
<skipTests>true</skipTests> | ||
</properties> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>@project.groupId@</groupId> | ||
<artifactId>nar-maven-plugin</artifactId> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<c> | ||
<defines> | ||
<define>LIB_IMPORTS</define> | ||
</defines> | ||
</c> | ||
<libraries> | ||
<library> | ||
<type>executable</type> | ||
<!-- <linkCPP>false</linkCPP> --> | ||
</library> | ||
</libraries> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.github.maven-nar.its.nar</groupId> | ||
<artifactId>it0040-lib-sharedstatic</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<type>nar</type> | ||
</dependency> | ||
</dependencies> | ||
</project> |
28 changes: 28 additions & 0 deletions
28
src/it/it0040-multi-libtype/it0040-dep-lib-default/src/main/c/HelloWorldExe.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* #%L | ||
* Native ARchive plugin for Maven | ||
* %% | ||
* Copyright (C) 2002 - 2014 NAR Maven Plugin developers. | ||
* %% | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* #L% | ||
*/ | ||
#include <stdio.h> | ||
#include "HelloWorldLib.h" | ||
|
||
int main(int argc, char *argv[]) { | ||
printf("%s\n", HelloWorldLib_sayHello()); | ||
return 0; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
#%L | ||
Native ARchive plugin for Maven | ||
%% | ||
Copyright (C) 2002 - 2014 NAR Maven Plugin developers. | ||
%% | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
#L% | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.github.maven-nar.its.nar</groupId> | ||
<artifactId>it0040-pom</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>it0040-dep-lib-shared</artifactId> | ||
<packaging>nar</packaging> | ||
|
||
<name>NAR Executable and Shared Library</name> | ||
<version>1.0-SNAPSHOT</version> | ||
<description> | ||
Executable depending on a shared library from a mixed type. | ||
</description> | ||
|
||
<properties> | ||
<skipTests>true</skipTests> | ||
</properties> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>@project.groupId@</groupId> | ||
<artifactId>nar-maven-plugin</artifactId> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<c> | ||
<defines> | ||
<define>LIB_IMPORTS</define> | ||
</defines> | ||
</c> | ||
<libraries> | ||
<library> | ||
<type>executable</type> | ||
<!-- <linkCPP>false</linkCPP> --> | ||
<dependencyBindings> | ||
<dependencyBinding>it0040-lib-sharedstatic:shared</dependencyBinding> | ||
</dependencyBindings> | ||
</library> | ||
</libraries> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.github.maven-nar.its.nar</groupId> | ||
<artifactId>it0040-lib-sharedstatic</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<type>nar</type> | ||
</dependency> | ||
</dependencies> | ||
</project> |
28 changes: 28 additions & 0 deletions
28
src/it/it0040-multi-libtype/it0040-dep-lib-shared/src/main/c/HelloWorldExe.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* #%L | ||
* Native ARchive plugin for Maven | ||
* %% | ||
* Copyright (C) 2002 - 2014 NAR Maven Plugin developers. | ||
* %% | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* #L% | ||
*/ | ||
#include <stdio.h> | ||
#include "HelloWorldLib.h" | ||
|
||
int main(int argc, char *argv[]) { | ||
printf("%s\n", HelloWorldLib_sayHello()); | ||
return 0; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
#%L | ||
Native ARchive plugin for Maven | ||
%% | ||
Copyright (C) 2002 - 2014 NAR Maven Plugin developers. | ||
%% | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
#L% | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.github.maven-nar.its.nar</groupId> | ||
<artifactId>it0040-pom</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>it0040-dep-lib-static</artifactId> | ||
<packaging>nar</packaging> | ||
|
||
<name>NAR Executable and Static Library</name> | ||
<version>1.0-SNAPSHOT</version> | ||
<description> | ||
Executable depending on a static library from a mixed type. | ||
</description> | ||
|
||
<properties> | ||
<skipTests>true</skipTests> | ||
</properties> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>@project.groupId@</groupId> | ||
<artifactId>nar-maven-plugin</artifactId> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<libraries> | ||
<library> | ||
<type>executable</type> | ||
<!-- <linkCPP>false</linkCPP> --> | ||
<dependencyBindings> | ||
<dependencyBinding>it0040-lib-sharedstatic:static</dependencyBinding> | ||
</dependencyBindings> | ||
</library> | ||
</libraries> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.github.maven-nar.its.nar</groupId> | ||
<artifactId>it0040-lib-sharedstatic</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<type>nar</type> | ||
</dependency> | ||
</dependencies> | ||
</project> |
28 changes: 28 additions & 0 deletions
28
src/it/it0040-multi-libtype/it0040-dep-lib-static/src/main/c/HelloWorldExe.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* #%L | ||
* Native ARchive plugin for Maven | ||
* %% | ||
* Copyright (C) 2002 - 2014 NAR Maven Plugin developers. | ||
* %% | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* #L% | ||
*/ | ||
#include <stdio.h> | ||
#include "HelloWorldLib.h" | ||
|
||
int main(int argc, char *argv[]) { | ||
printf("%s\n", HelloWorldLib_sayHello()); | ||
return 0; | ||
} | ||
|
||
|
Oops, something went wrong.