dllimport and build sync
authorVolker Birk <vb@pep.foundation>
Mon, 15 Oct 2018 21:57:15 +0200
branchsync
changeset 30589626ee1d22c3
parent 3057 fff5fb5e01fe
child 3059 a0f8b417d922
dllimport and build
build-windows/pEpEngine.vcxproj
sync/gen_codec.ysl2
     1.1 --- a/build-windows/pEpEngine.vcxproj	Mon Oct 15 21:35:52 2018 +0200
     1.2 +++ b/build-windows/pEpEngine.vcxproj	Mon Oct 15 21:57:15 2018 +0200
     1.3 @@ -68,8 +68,7 @@
     1.4        <AdditionalDependencies>Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
     1.5      </Link>
     1.6      <PreBuildEvent>
     1.7 -      <Command>
     1.8 -      </Command>
     1.9 +      <Command>"$(ProjDir)generate_code.cmd" "$(ProjDir).."</Command>
    1.10      </PreBuildEvent>
    1.11    </ItemDefinitionGroup>
    1.12    <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    1.13 @@ -95,8 +94,7 @@
    1.14        <AdditionalDependencies>Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
    1.15      </Link>
    1.16      <PreBuildEvent>
    1.17 -      <Command>
    1.18 -      </Command>
    1.19 +      <Command>"$(ProjDir)generate_code.cmd" "$(ProjDir).."</Command>
    1.20      </PreBuildEvent>
    1.21    </ItemDefinitionGroup>
    1.22    <ItemGroup>
     2.1 --- a/sync/gen_codec.ysl2	Mon Oct 15 21:35:52 2018 +0200
     2.2 +++ b/sync/gen_codec.ysl2	Mon Oct 15 21:57:15 2018 +0200
     2.3 @@ -103,12 +103,14 @@
     2.4          // This file is under GNU General Public License 3.0
     2.5          // see LICENSE.txt
     2.6  
     2.7 +        #include "platform.h"
     2.8 +
     2.9          #include "«yml:lcase(@name)»_codec.h"
    2.10          #include "../asn.1/«@name».h"
    2.11          #include "pEp_internal.h"
    2.12          #include "growing_buf.h"
    2.13  
    2.14 -        PEP_STATUS decode_«@name»_message(
    2.15 +        DYNAMIC_API PEP_STATUS decode_«@name»_message(
    2.16                  const char *data,
    2.17                  size_t size,
    2.18                  «@name»_t **msg