Skip to content

Commit

Permalink
Rebuilt pipeline plugins with Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
JCash committed Jul 3, 2023
1 parent 7458cdb commit ba439d5
Show file tree
Hide file tree
Showing 13 changed files with 63 additions and 21 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/bob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ jobs:
name: Build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: '16.0.1'
java-version: '17.0.5+8'
architecture: x64
distribution: 'temurin'

- name: Get Defold version
run: |
Expand Down Expand Up @@ -66,9 +68,11 @@ jobs:
name: Build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: '16.0.1'
java-version: '17.0.5+8'
architecture: x64
distribution: 'temurin'

- name: Get Defold version
run: |
Expand All @@ -93,15 +97,17 @@ jobs:
build_with_bob_macos:
strategy:
matrix:
platform: [arm64-darwin, x86_64-darwin]
platform: [arm64-macos, x86_64-macos]
runs-on: macOS-latest

name: Build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: '16.0.1'
java-version: '17.0.5+8'
architecture: x64
distribution: 'temurin'

- name: Get Defold version
run: |
Expand All @@ -117,6 +123,6 @@ jobs:
- name: Resolve libraries
run: java -jar bob.jar resolve --email [email protected] --auth 123456
- name: Build
run: java -jar bob.jar --platform=${{ matrix.platform }} build --archive --build-server=${{env.BUILD_SERVER}}
run: java -jar bob.jar --platform=x86_64-macos --architectures=${{ matrix.platform }} build --archive --build-server=${{env.BUILD_SERVER}}
- name: Bundle
run: java -jar bob.jar --platform=${{ matrix.platform }} bundle
run: java -jar bob.jar --platform=x86_64-macos --architectures=${{ matrix.platform }} bundle
2 changes: 1 addition & 1 deletion defold-rive/ext.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ platforms:
cxxShFlags: ["-std=c++17", "-fno-rtti"]
cxxLinkShFlags: ["-std=c++17"]

x86_64-osx:
osx:
context:
flags: ["-std=c++17", "-fno-rtti"]

Expand Down
16 changes: 15 additions & 1 deletion defold-rive/include/jni/jni.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -1871,6 +1871,20 @@ struct JNIEnv_ {
#endif /* __cplusplus */
};

/*
* optionString may be any option accepted by the JVM, or one of the
* following:
*
* -D<name>=<value> Set a system property.
* -verbose[:class|gc|jni] Enable verbose output, comma-separated. E.g.
* "-verbose:class" or "-verbose:gc,class"
* Standard names include: gc, class, and jni.
* All nonstandard (VM-specific) names must begin
* with "X".
* vfprintf extraInfo is a pointer to the vfprintf hook.
* exit extraInfo is a pointer to the exit hook.
* abort extraInfo is a pointer to the abort hook.
*/
typedef struct JavaVMOption {
char *optionString;
void *extraInfo;
Expand Down
18 changes: 14 additions & 4 deletions defold-rive/include/linux/jni_md.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -29,16 +29,26 @@
#ifndef __has_attribute
#define __has_attribute(x) 0
#endif

#ifndef JNIEXPORT
#if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
#ifdef ARM
#define JNIEXPORT __attribute__((externally_visible,visibility("default")))
#else
#define JNIEXPORT __attribute__((visibility("default")))
#endif
#else
#define JNIEXPORT
#endif
#endif

#if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
#ifdef ARM
#define JNIEXPORT __attribute__((externally_visible,visibility("default")))
#define JNIIMPORT __attribute__((externally_visible,visibility("default")))
#else
#define JNIEXPORT __attribute__((visibility("default")))
#define JNIIMPORT __attribute__((visibility("default")))
#endif
#else
#define JNIEXPORT
#define JNIIMPORT
#endif

Expand Down
18 changes: 14 additions & 4 deletions defold-rive/include/osx/jni_md.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -29,16 +29,26 @@
#ifndef __has_attribute
#define __has_attribute(x) 0
#endif

#ifndef JNIEXPORT
#if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
#ifdef ARM
#define JNIEXPORT __attribute__((externally_visible,visibility("default")))
#else
#define JNIEXPORT __attribute__((visibility("default")))
#endif
#else
#define JNIEXPORT
#endif
#endif

#if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
#ifdef ARM
#define JNIEXPORT __attribute__((externally_visible,visibility("default")))
#define JNIIMPORT __attribute__((externally_visible,visibility("default")))
#else
#define JNIEXPORT __attribute__((visibility("default")))
#define JNIIMPORT __attribute__((visibility("default")))
#endif
#else
#define JNIEXPORT
#define JNIIMPORT
#endif

Expand Down
6 changes: 4 additions & 2 deletions defold-rive/include/win32/jni_md.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 1998, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -26,7 +26,9 @@
#ifndef _JAVASOFT_JNI_MD_H_
#define _JAVASOFT_JNI_MD_H_

#define JNIEXPORT __declspec(dllexport)
#ifndef JNIEXPORT
#define JNIEXPORT __declspec(dllexport)
#endif
#define JNIIMPORT __declspec(dllimport)
#define JNICALL __stdcall

Expand Down
Binary file added defold-rive/lib/arm64-osx/librivecpp.a
Binary file not shown.
Binary file added defold-rive/lib/arm64-osx/librivetess.a
Binary file not shown.
Binary file added defold-rive/lib/arm64-osx/libtess2.a
Binary file not shown.
Binary file modified defold-rive/plugins/lib/x86_64-linux/libRiveExt.so
Binary file not shown.
Binary file modified defold-rive/plugins/lib/x86_64-osx/libRiveExt.dylib
Binary file not shown.
Binary file modified defold-rive/plugins/lib/x86_64-win32/libRiveExt.dll
Binary file not shown.
Binary file modified defold-rive/plugins/share/pluginRiveExt.jar
Binary file not shown.

0 comments on commit ba439d5

Please sign in to comment.