Skip to content
Permalink
Browse files

Improve test.

  • Loading branch information
egorpugin committed Feb 7, 2020
1 parent 33eaa7f commit 6b3d4cb877c57a228f0edd8892cc144cdec968a8
Showing with 13 additions and 12 deletions.
  1. +2 −2 test/build/cpp/static/exe.cpp
  2. +3 −0 test/build/cpp/static/lib3.cpp
  3. +2 −0 test/build/cpp/static/lib3.h
  4. +6 −10 test/build/cpp/static/sw.cpp
@@ -1,2 +1,2 @@
#include "lib2.h"
int main() {lib2();}
#include "lib3.h"
int main() {lib3();}
@@ -0,0 +1,3 @@
#include "lib2.h"
#include "lib3.h"
void lib3(){lib2();}
@@ -0,0 +1,2 @@
LIB3_API
void lib3();
@@ -1,12 +1,3 @@
/*void configure(Solution &s)
{
auto &s1 = s.addSolution();
s1.Settings.Native.LibrariesType = LibraryType::Static;
auto &s2 = s.addSolution();
s2.Settings.Native.LibrariesType = LibraryType::Shared;
}*/

void build(Solution &s)
{
auto &lib1 = s.addLibrary("lib1");
@@ -18,7 +9,12 @@ void build(Solution &s)
lib2 += "lib2.*"_rr;
lib2 += lib1;

auto &lib3 = s.addLibrary("lib3");
lib3.ApiName = "LIB3_API";
lib3 += "lib3.*"_rr;
lib3 += lib2;

auto &exe1 = s.addExecutable("exe1");
exe1 += "exe.*"_rr;
exe1 += lib2;
exe1 += lib3;
}

0 comments on commit 6b3d4cb

Please sign in to comment.
You can’t perform that action at this time.