gbuild-to-ide added -DLIBO_INTERNAL_ONLY to CXXFLAGS

In order to compile correct this flag is needed and
it is not exported in the json files

Change-Id: Ib8f0b882f2d59ed467a9198c148263e2882c60b3
This commit is contained in:
jan Iversen 2017-02-02 20:27:50 +01:00
parent 23f7e82c7b
commit 8944a4dc98
6 changed files with 2 additions and 56 deletions

View file

@ -123,6 +123,7 @@ class GbuildParser:
jsondata['target_name'] = module + '_' + jsontype + '_' + match
jsondata['DEFS'] = GbuildParser.__split_defs(jsondata['DEFS'])
jsondata['LINKED_LIBS'] = jsondata['LINKED_LIBS'].strip().split(' ')
jsondata['CXXFLAGS'] += ' -DLIBO_INTERNAL_ONLY'
for i in ['CXXFLAGS', 'CFLAGS', 'OBJCFLAGS', 'OBJCXXFLAGS']:
jsondata[i] = GbuildParser.__split_flags(jsondata[i], jsondata[i+'APPEND'])
for i in jsonSrc:

1
compile_commands.json Normal file
View file

@ -0,0 +1 @@
[{"command": "clang++ -Wall -DMACOSX_SDK_VERSION=101200 -DBOOST_ERROR_CODE_HEADER_ONLY -DSAL_LOG_INFO -DSYSTEM_LIBXML -DBOOST_SYSTEM_NO_DEPRECATED -DUNX -DUNIX -D_PTHREADS -DLIBO_INTERNAL_ONLY -DMAC_OS_X_VERSION_MIN_REQUIRED=1080 -DOSL_DEBUG_LEVEL=1 -DX86_64 -DSAL_LOG_WARN -DNO_PTHREAD_PRIORITY -DMAC_OS_X_VERSION_MAX_ALLOWED=101200 -DMACOSX -D_REENTRANT -DCPPU_ENV=gcc3 -I/Volumes/LIBREOFFICE/play/xcode_core/l10ntools/source -Iexternal/boost/include -I/Volumes/LIBREOFFICE/play/xcode/workdir/UnpackedTarball/boost -Il10ntools/inc -Iinclude -I/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/include/darwin -I/Volumes/LIBREOFFICE/play/xcode/config_host -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2 -fmessage-length=0 -fno-common -pipe -fno-threadsafe-statics -fvisibility-inlines-hidden -fstack-protector-strong -fPIC -fno-strict-aliasing -fsigned-char -std=gnu++14 -c /Volumes/LIBREOFFICE/play/xcode_core/l10ntools/source/pocheck.cxx", "directory": "/Volumes/LIBREOFFICE/play/xcode_core/l10ntools", "file": "/Volumes/LIBREOFFICE/play/xcode_core/l10ntools/source/pocheck.cxx"}]

View file

@ -1,13 +0,0 @@
//
// janTestLib.h
// janTestLib
//
// Created by Jan Iversen on 29/01/2017.
// Copyright © 2017 Jan Iversen. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface janTestLib : NSObject
@end

View file

@ -1,13 +0,0 @@
//
// janTestLib.m
// janTestLib
//
// Created by Jan Iversen on 29/01/2017.
// Copyright © 2017 Jan Iversen. All rights reserved.
//
#import "janTestLib.h"
@implementation janTestLib
@end

View file

@ -1,15 +0,0 @@
//
// main.cpp
// jantest
//
// Created by Jan Iversen on 29/01/2017.
// Copyright © 2017 Jan Iversen. All rights reserved.
//
#include <iostream>
int main(int argc, const char * argv[]) {
// insert code here...
std::cout << "Hello, World!\n";
return 0;
}

View file

@ -1,15 +0,0 @@
//
// main.cpp
// jantest
//
// Created by Jan Iversen on 29/01/2017.
// Copyright © 2017 Jan Iversen. All rights reserved.
//
#include <iostream>
int main(int argc, const char * argv[]) {
// insert code here...
std::cout << "Hello, World!\n";
return 0;
}