Skip to content

Commit

Permalink
build stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Deniz Erbilgin committed Jul 16, 2020
1 parent 188f82d commit e172ed7
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 133 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
/tmptestexe

# ninja
/build
/builddir
/buildclang
/subprojects

# vscode
Expand Down
87 changes: 5 additions & 82 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -1,93 +1,16 @@
{
"configurations": [
{
"name": "Mac",
"includePath": [
"/usr/include",
"/usr/local/include",
"${workspaceRoot}"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"/usr/include",
"/usr/local/include",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
],
"compilerPath": "/bin/clang",
"cStandard": "c11",
"cppStandard": "c++17"
},
{
"name": "Linux",
"includePath": [
"/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7",
"/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/x86_64-redhat-linux",
"/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/backward",
"/usr/lib/gcc/x86_64-redhat-linux/7/include",
"/usr/local/include",
"/usr/include",
"/opt/arduino/hardware/arduino/avr/cores/arduino",
"/opt/arduino/hardware/arduino/avr/libraries",
"/opt/arduino/hardware/arduino/avr/variants/standard",
"/opt/arduino/hardware/tools/avr/avr/include",
"${workspaceRoot}",
"${workspaceRoot}/content/OTAESGCM"
"${workspaceFolder}/**"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7",
"/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/x86_64-redhat-linux",
"/usr/lib/gcc/x86_64-redhat-linux/7/../../../../include/c++/7/backward",
"/usr/lib/gcc/x86_64-redhat-linux/7/include",
"/usr/local/include",
"/usr/include",
"/opt/arduino/hardware/arduino/avr/cores/arduino",
"/opt/arduino/hardware/arduino/avr/libraries",
"/opt/arduino/hardware/arduino/avr/variants/standard",
"/opt/arduino/hardware/tools/avr/avr/include",
"${workspaceRoot}",
"${workspaceRoot}/content/OTAESGCM"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"compilerPath": "/usr/bin/gcc",
"compilerPath": "/usr/bin/clang",
"cStandard": "c11",
"cppStandard": "c++17"
},
{
"name": "Win32",
"includePath": [
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include",
"${workspaceRoot}"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"intelliSenseMode": "msvc-x64",
"browse": {
"path": [
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/*",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"compilerPath": "/bin/clang",
"cStandard": "c11",
"cppStandard": "c++17"
"cppStandard": "c++11",
"intelliSenseMode": "clang-x64",
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
}
],
"version": 4
Expand Down
8 changes: 0 additions & 8 deletions .vscode/clean.sh

This file was deleted.

28 changes: 11 additions & 17 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "test",
"type": "shell",
"command": ".vscode/tests.sh",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"problemMatcher": "$gcc"
}
]
"version": "2.0.0",
"tasks": [
{
"type": "meson",
"target": "OTAESGCMTests",
"mode": "build",
"group": "build",
"problemMatcher": [],
"label": "Meson: Build OTAESGCMTests"
}
]
}
14 changes: 0 additions & 14 deletions .vscode/tests.sh

This file was deleted.

22 changes: 11 additions & 11 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ src = [
'content/OTAESGCM/utility/OTAESGCM_OTAESGCM.cpp',
]

libOTAESGCM = static_library('OTAESGCM', src,
include_directories : inc,
cpp_args : cpp_args,
install : true
)

libOTAESGCM_dep = declare_dependency(
include_directories : inc,
link_with : libOTAESGCM
)
if meson.is_subproject()
libOTAESGCM = static_library('OTAESGCM', src,
include_directories : inc,
cpp_args : cpp_args,
install : true
)

if not meson.is_subproject()
libOTAESGCM_dep = declare_dependency(
include_directories : inc,
link_with : libOTAESGCM
)
else
# Compile test executable.
# This is broken out to avoid compile errors due to lack of gtest.
test_src = 'portableUnitTests/main.cpp'
Expand Down

0 comments on commit e172ed7

Please sign in to comment.