mirror of
https://github.com/boostorg/dll.git
synced 2026-02-18 14:02:16 +00:00
minor fixes, tests update
This commit is contained in:
@@ -39,5 +39,5 @@ exe getting_started
|
||||
;
|
||||
|
||||
exe load_self
|
||||
: load_self.cpp
|
||||
: tutorail3/load_self.cpp
|
||||
;
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
#
|
||||
# Copyright Renato Tegon Forti 2011 - 2013.
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
# (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
#
|
||||
|
||||
project
|
||||
: source-location .
|
||||
: requirements
|
||||
|
||||
# linux
|
||||
<target-os>linux:<linkflags>"-ldl"
|
||||
|
||||
# others
|
||||
<link>shared:<define>BOOST_ALL_DLL
|
||||
<library>/boost/system//boost_system
|
||||
<library>/boost/filesystem//boost_filesystem
|
||||
<threading>multi
|
||||
;
|
||||
|
||||
# our example plugin lib
|
||||
lib plugin_library : plugin_library.cpp ;
|
||||
lib getting_started_library : getting_started_library.cpp ;
|
||||
install install-bin
|
||||
: plugin_library getting_started_library :
|
||||
<target-os>windows:<location>"C:/test/boost/application"
|
||||
<target-os>linux:<location>/test/boost/application ;
|
||||
|
||||
|
||||
# shared library sub-system
|
||||
exe shared_library_load_plugin
|
||||
: shared_library_load_plugin.cpp
|
||||
;
|
||||
|
||||
exe getting_started
|
||||
: getting_started.cpp
|
||||
;
|
||||
@@ -13,11 +13,6 @@
|
||||
#include <boost/plugin.hpp>
|
||||
#include <iostream>
|
||||
|
||||
extern "C" BOOST_SYMBOL_EXPORT int sumexe(int x, int y)
|
||||
{
|
||||
return x+y;
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
std::cout << "Application started" << std::endl;
|
||||
|
||||
17
example/tutorial3/static_plugin.cpp
Normal file
17
example/tutorial3/static_plugin.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2011-2012 Renato Tegon Forti
|
||||
// Copyright 2014 Renato Tegon Forti, Antony Polukhin.
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt
|
||||
// or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
// For more information, see http://www.boost.org
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/plugin/alias.hpp>
|
||||
|
||||
extern "C" BOOST_SYMBOL_EXPORT int sumexe(int x, int y)
|
||||
{
|
||||
return x+y;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user