SPARK-1384, Extension SDK is now part of the build.
This commit is contained in:
1 parent
8fc42f6193
commit
92b3cd1da0
2 files changed
+7
-12
No files matched your search
Regular → Executable
+3
-10
@@ -1,18 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "build_example.sh Debug|Release"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
CONFIG=$1
|
||||
|
||||
g++ -isystem externals/linux/include \
|
||||
g++ -isystem include/externals/linux/include \
|
||||
-I include \
|
||||
-I include/spark \
|
||||
-o example \
|
||||
example.cpp \
|
||||
-Wl,-rpath,. \
|
||||
-L . \
|
||||
-Wl,-rpath,lib \
|
||||
-L lib \
|
||||
-l spark
|
||||
|
||||
+4
-2
@@ -1,13 +1,15 @@
|
||||
#include "spark/lib/logging/logging.h"
|
||||
#include "spark/lib/utils/init_spark_lib.h"
|
||||
#include "spark/lib/utils/bts_chrono.h"
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
using namespace bts;
|
||||
|
||||
utils::init_spark_lib();
|
||||
LOG(md, Error, "Hello world");
|
||||
LOG(md, Info, "Hello world");
|
||||
sleep_for(5s);
|
||||
utils::finit_spark_lib();
|
||||
while (true) ;
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user