Skip to content

Commit

Permalink
Merge pull request #7 from Software-Hardware-Codesign/refactor-modules
Browse files Browse the repository at this point in the history
jme-alloc: refactored to jme native modular style
  • Loading branch information
pavly-gerges authored Jan 21, 2023
2 parents 85ad87a + 1ae15db commit 577063b
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions native-alloc/build.gradle → jme3-alloc-native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ plugins {
}

final String version = "0.1-A"
final String buildDirectory="${project.rootDir}/jvm-alloc/build/classes/java/main/"
final String nativeObjects="${project.rootDir}/native-alloc/build/lib/main/debug/"
final String buildDirectory="${project.rootDir}/jme3-alloc/build/classes/java/main/"
final String nativeObjects="${project.rootDir}/jme3-alloc-native/build/lib/main/debug/"

task copyNatives(type: Copy) {
from "${nativeObjects}"
Expand Down
7 changes: 7 additions & 0 deletions jme3-alloc-native/src/c/c.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <stdio.h>

int main(int argc, char **argv)
{
printf("give me a bottle of rum!\n");
return 0;
}
2 changes: 1 addition & 1 deletion jvm-alloc/build.gradle → jme3-alloc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tasks.named('test') {
tasks.withType(JavaCompile) { // compile-time options [javac <options> <sources>]
//options.compilerArgs << '-Xlint:deprecation' // to show deprecation warnings
options.compilerArgs << '-Xlint:unchecked'
options.compilerArgs += ["-h", "${project.rootDir}/native-alloc/src/main/include"]
options.compilerArgs += ["-h", "${project.rootDir}/jme3-alloc-native/src/include/"]
options.encoding = 'UTF-8'
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_1_10)) {
options.release = 8
Expand Down
File renamed without changes.
11 changes: 0 additions & 11 deletions native-alloc/src/main/c/hello.cpp

This file was deleted.

4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
*/

rootProject.name = 'jme-alloc'
include('jvm-alloc')
include('native-alloc')
include('jme3-alloc')
include('jme3-alloc-native')

0 comments on commit 577063b

Please sign in to comment.