Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
G
gradle_sandbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
steinbac
gradle_sandbox
Commits
a25f51fc
Commit
a25f51fc
authored
Aug 14, 2018
by
Peter Steinbach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version tests
parent
17dcf4d1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
0 deletions
+57
-0
version/build.gradle
version/build.gradle
+56
-0
version/gradle.properties
version/gradle.properties
+1
-0
No files found.
version/build.gradle
0 → 100644
View file @
a25f51fc
import
org.apache.tools.ant.taskdefs.condition.Os
apply
plugin:
'java'
apply
plugin:
'eclipse'
apply
plugin:
'maven'
apply
plugin:
'maven-publish'
def
project_root
=
file
(
"."
).
absolutePath
def
native_build_dir
=
'./build/cpp'
def
native_source_dir
=
'./src/cpp'
task
create_build_dir
<<
{
println
'create_build_dir'
new
File
(
native_build_dir
).
mkdirs
()
}
task
cmake
(
type:
Exec
)
{
workingDir
(
native_build_dir
)
inputs
.
dir
file
(
native_source_dir
).
absolutePath
outputs
.
file
file
(
native_build_dir
).
absolutePath
+
'/Makefile'
def
native_build_type
=
project
.
hasProperty
(
"sqy_build_type"
)
?
sqy_build_type
:
"Release"
def
cmake_binary_path
=
project
.
hasProperty
(
"cmake_binary_abspath"
)
?
cmake_binary_abspath
:
"cmake"
def
cmake_args
=
[]
as
List
cmake_args
.
add
(
"-DCMAKE_BUILD_TYPE="
+
native_build_type
+
" "
)
cmake_args
+=
file
(
native_source_dir
).
absolutePath
if
(
Os
.
isFamily
(
Os
.
FAMILY_WINDOWS
)){
executable
'cmake.exe'
}
else
if
(
Os
.
isFamily
(
Os
.
FAMILY_MAC
))
{
executable
'cmake'
args
cmake_args
}
else
if
(
Os
.
isFamily
(
Os
.
FAMILY_UNIX
))
{
println
"using "
+
cmake_binary_path
executable
cmake_binary_path
args
cmake_args
// commandLine 'cmake',file(native_source_dir).absolutePath
}
}
cmake
.
dependsOn
create_build_dir
test
.
dependsOn
cmake
version/gradle.properties
0 → 100644
View file @
a25f51fc
org.gradle.daemon
=
true
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment