Kaydet (Commit) 8944a4dc authored tarafından jan Iversen's avatar jan Iversen

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
üst 23f7e82c
......@@ -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:
......
[{"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"}]
\ No newline at end of file
//
// 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
//
// janTestLib.m
// janTestLib
//
// Created by Jan Iversen on 29/01/2017.
// Copyright © 2017 Jan Iversen. All rights reserved.
//
#import "janTestLib.h"
@implementation janTestLib
@end
//
// 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;
}
//
// 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment