Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Move public headers to include/djinni #247

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/generated-src/jni/NativeItemList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file generated by Djinni from example.djinni

#include "NativeItemList.hpp" // my header
#include "Marshal.hpp"
#include "djinni/support-lib/jni/Marshal.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion example/generated-src/jni/NativeItemList.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#pragma once

#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"
#include "item_list.hpp"

namespace djinni_generated {
Expand Down
2 changes: 1 addition & 1 deletion example/generated-src/jni/NativeSortItems.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#pragma once

#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"
#include "sort_items.hpp"

namespace djinni_generated {
Expand Down
2 changes: 1 addition & 1 deletion example/generated-src/jni/NativeSortOrder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#pragma once

#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"
#include "sort_order.hpp"

namespace djinni_generated {
Expand Down
2 changes: 1 addition & 1 deletion example/generated-src/jni/NativeTextboxListener.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#pragma once

#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"
#include "textbox_listener.hpp"

namespace djinni_generated {
Expand Down
2 changes: 1 addition & 1 deletion example/generated-src/objc/TXSItemList+Private.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file generated by Djinni from example.djinni

#import "TXSItemList+Private.h"
#import "DJIMarshal+Private.h"
#import "djinni/support-lib/objc/DJIMarshal+Private.h"
#include <cassert>

namespace djinni_generated {
Expand Down
6 changes: 3 additions & 3 deletions example/generated-src/objc/TXSSortItems+Private.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

#import "TXSSortItems+Private.h"
#import "TXSSortItems.h"
#import "DJICppWrapperCache+Private.h"
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#import "TXSItemList+Private.h"
#import "TXSSortItems+Private.h"
#import "TXSTextboxListener+Private.h"
#import "djinni/support-lib/objc/DJICppWrapperCache+Private.h"
#import "djinni/support-lib/objc/DJIError.h"
#import "djinni/support-lib/objc/DJIMarshal+Private.h"
#include <exception>
#include <utility>

Expand Down
2 changes: 1 addition & 1 deletion example/generated-src/objc/TXSTextboxListener+Private.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#import "TXSTextboxListener+Private.h"
#import "TXSTextboxListener.h"
#import "DJIObjcWrapperCache+Private.h"
#import "TXSItemList+Private.h"
#import "djinni/support-lib/objc/DJIObjcWrapperCache+Private.h"

static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"
#include <cassert>
#include <chrono>
#include <cstdint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
#include <string>
#include <unordered_map>

#include "../proxy_cache_interface.hpp"
#include "../djinni_common.hpp"
#include "djinni/support-lib/proxy_cache_interface.hpp"
#include "djinni/support-lib/djinni_common.hpp"
#include <jni.h>

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#import <Foundation/Foundation.h>
#include <memory>

#include "../proxy_cache_interface.hpp"
#include "djinni/support-lib/proxy_cache_interface.hpp"

namespace djinni {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#import <Foundation/Foundation.h>
#include <memory>

#include "../proxy_cache_interface.hpp"
#include "djinni/support-lib/proxy_cache_interface.hpp"

namespace djinni {

Expand Down
4 changes: 2 additions & 2 deletions src/source/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ object Main {
var jniIncludeCppPrefix: String = ""
var jniFileIdentStyleOptional: Option[IdentConverter] = None
var jniBaseLibClassIdentStyleOptional: Option[IdentConverter] = None
var jniBaseLibIncludePrefix: String = ""
var jniBaseLibIncludePrefix: String = "djinni/support-lib/jni/"
var cppHeaderOutFolderOptional: Option[File] = None
var cppExt: String = "cpp"
var cppHeaderExt: String = "hpp"
Expand All @@ -70,7 +70,7 @@ object Main {
var objcppIncludeObjcPrefixOptional: Option[String] = None
var objcFileIdentStyleOptional: Option[IdentConverter] = None
var objcppNamespace: String = "djinni_generated"
var objcBaseLibIncludePrefix: String = ""
var objcBaseLibIncludePrefix: String = "djinni/support-lib/objc/"
var inFileListPath: Option[File] = None
var outFileListPath: Option[File] = None
var skipGeneration: Boolean = false
Expand Down
2 changes: 1 addition & 1 deletion support-lib/jni/djinni_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// This provides a minimal JNI_OnLoad and JNI_OnUnload implementation - include it if your
// app doesn't use JNI except through Djinni.

#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"

// Called when library is loaded by the first class which uses it.
CJNIEXPORT jint JNICALL JNI_OnLoad(JavaVM * jvm, void * /*reserved*/) {
Expand Down
4 changes: 2 additions & 2 deletions support-lib/jni/djinni_support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// limitations under the License.
//

#include "../djinni_common.hpp"
#include "djinni_support.hpp"
#include "djinni/support-lib/djinni_common.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"
#include "../proxy_cache_impl.hpp"
#include <cassert>
#include <cstdlib>
Expand Down
2 changes: 1 addition & 1 deletion support-lib/objc/DJIError.mm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//

#include <Foundation/Foundation.h>
#include "DJIError.h"
#include "djinni/support-lib/objc/DJIError.h"
#include <exception>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");

Expand Down
4 changes: 2 additions & 2 deletions support-lib/objc/DJIProxyCaches.mm
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");

#include "../proxy_cache_impl.hpp"
#include "DJIObjcWrapperCache+Private.h"
#include "DJICppWrapperCache+Private.h"
#include "djinni/support-lib/objc/DJIObjcWrapperCache+Private.h"
#include "djinni/support-lib/objc/DJICppWrapperCache+Private.h"

namespace djinni {

Expand Down
2 changes: 1 addition & 1 deletion support-lib/proxy_cache_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include "proxy_cache_interface.hpp"
#include "djinni/support-lib/proxy_cache_interface.hpp"
#include <functional>
#include <mutex>
#include <unordered_map>
Expand Down
20 changes: 12 additions & 8 deletions support-lib/support_lib.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@
"target_name": "djinni_jni",
"type": "static_library",
"sources": [
"djinni_common.hpp",
"../include/djinni/support-lib/djinni_common.hpp",
"../include/djinni/support-lib/jni/djinni_support.hpp",
"../include/djinni/support-lib/jni/Marshal.hpp",
"jni/djinni_support.cpp",
"jni/djinni_support.hpp",
"jni/Marshal.hpp",
],
"include_dirs": [
"jni",
"../include"
],
"direct_dependent_settings": {
"include_dirs": [
"jni",
"../include"
],
},
},
Expand All @@ -25,21 +27,23 @@
"CLANG_ENABLE_OBJC_ARC": "YES",
},
"sources": [
"objc/DJICppWrapperCache+Private.h",
"objc/DJIError.h",
"../include/djinni/support-lib/objc/DJICppWrapperCache+Private.h",
"../include/djinni/support-lib/objc/DJIError.h",
"../include/djinni/support-lib/objc/DJIMarshal+Private.h",
"../include/djinni/support-lib/objc/DJIObjcWrapperCache+Private.h",
"../include/djinni/support-lib/proxy_cache_interface.hpp",
"objc/DJIError.mm",
"objc/DJIMarshal+Private.h",
"objc/DJIObjcWrapperCache+Private.h",
"objc/DJIProxyCaches.mm",
"proxy_cache_impl.hpp",
"proxy_cache_interface.hpp",
],
"include_dirs": [
"objc",
"../include"
],
"direct_dependent_settings": {
"include_dirs": [
"objc",
"../include"
],
},
},
Expand Down
4 changes: 2 additions & 2 deletions test-suite/djinni/date.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ objc:
hash: '(NSUInteger)%s.timeIntervalSinceReferenceDate'
objcpp:
translator: '::djinni::Date'
header: '"DJIMarshal+Private.h"'
header: '"djinni/support-lib/objc/DJIMarshal+Private.h"'
java:
typename: 'java.util.Date'
boxed: 'java.util.Date'
Expand All @@ -25,6 +25,6 @@ java:
hash: '%s.hashCode()'
jni:
translator: '::djinni::Date'
header: '"Marshal.hpp"'
header: '"djinni/support-lib/jni/Marshal.hpp"'
typename: jobject
typeSignature: 'Ljava/util/Date;'
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeAssortedPrimitives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file generated by Djinni from primtypes.djinni

#include "NativeAssortedPrimitives.hpp" // my header
#include "Marshal.hpp"
#include "djinni/support-lib/jni/Marshal.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeAssortedPrimitives.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#pragma once

#include "assorted_primitives.hpp"
#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeClientInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// This file generated by Djinni from client_interface.djinni

#include "NativeClientInterface.hpp" // my header
#include "Marshal.hpp"
#include "NativeClientInterface.hpp"
#include "NativeClientReturnedRecord.hpp"
#include "djinni/support-lib/jni/Marshal.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeClientInterface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#pragma once

#include "client_interface.hpp"
#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"

namespace djinni_generated {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file generated by Djinni from client_interface.djinni

#include "NativeClientReturnedRecord.hpp" // my header
#include "Marshal.hpp"
#include "djinni/support-lib/jni/Marshal.hpp"

namespace djinni_generated {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#pragma once

#include "client_returned_record.hpp"
#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeColor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#pragma once

#include "color.hpp"
#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeConflict.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#pragma once

#include "Conflict.hpp"
#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeConflictUser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// This file generated by Djinni from test.djinni

#include "NativeConflictUser.hpp" // my header
#include "Marshal.hpp"
#include "NativeConflict.hpp"
#include "djinni/support-lib/jni/Marshal.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeConflictUser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#pragma once

#include "conflict_user.hpp"
#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeConstantRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// This file generated by Djinni from constants.djinni

#include "NativeConstantRecord.hpp" // my header
#include "Marshal.hpp"
#include "djinni/support-lib/jni/Marshal.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeConstantRecord.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#pragma once

#include "constant_record.hpp"
#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeConstants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#pragma once

#include "constants.hpp"
#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeConstantsInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// This file generated by Djinni from constants.djinni

#include "NativeConstantsInterface.hpp" // my header
#include "Marshal.hpp"
#include "NativeConstantRecord.hpp"
#include "djinni/support-lib/jni/Marshal.hpp"

namespace djinni_generated {

Expand Down
2 changes: 1 addition & 1 deletion test-suite/generated-src/jni/NativeConstantsInterface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#pragma once

#include "constants_interface.hpp"
#include "djinni_support.hpp"
#include "djinni/support-lib/jni/djinni_support.hpp"

namespace djinni_generated {

Expand Down
Loading