swig_java_pjsua2.vcxproj 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <ItemGroup Label="ProjectConfigurations">
  4. <ProjectConfiguration Include="Debug|ARM64">
  5. <Configuration>Debug</Configuration>
  6. <Platform>ARM64</Platform>
  7. </ProjectConfiguration>
  8. <ProjectConfiguration Include="Debug|Win32">
  9. <Configuration>Debug</Configuration>
  10. <Platform>Win32</Platform>
  11. </ProjectConfiguration>
  12. <ProjectConfiguration Include="Debug|x64">
  13. <Configuration>Debug</Configuration>
  14. <Platform>x64</Platform>
  15. </ProjectConfiguration>
  16. <ProjectConfiguration Include="Release|ARM64">
  17. <Configuration>Release</Configuration>
  18. <Platform>ARM64</Platform>
  19. </ProjectConfiguration>
  20. <ProjectConfiguration Include="Release|Win32">
  21. <Configuration>Release</Configuration>
  22. <Platform>Win32</Platform>
  23. </ProjectConfiguration>
  24. <ProjectConfiguration Include="Release|x64">
  25. <Configuration>Release</Configuration>
  26. <Platform>x64</Platform>
  27. </ProjectConfiguration>
  28. </ItemGroup>
  29. <!-- Import common config -->
  30. <Import Project="..\..\build\vs\pjproject-vs14-common-config.props" />
  31. <PropertyGroup Label="Globals">
  32. <ProjectGuid>{63AC6D7A-5D97-40C2-9AF2-E13AA1F9567C}</ProjectGuid>
  33. <TargetName>pjsua2</TargetName>
  34. <RootNamespace>swig_java_pjsua2</RootNamespace>
  35. </PropertyGroup>
  36. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  37. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
  38. <ConfigurationType>DynamicLibrary</ConfigurationType>
  39. <PlatformToolset>v140</PlatformToolset>
  40. <CharacterSet>MultiByte</CharacterSet>
  41. <WholeProgramOptimization>true</WholeProgramOptimization>
  42. </PropertyGroup>
  43. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
  44. <ConfigurationType>DynamicLibrary</ConfigurationType>
  45. <PlatformToolset>v140</PlatformToolset>
  46. <CharacterSet>MultiByte</CharacterSet>
  47. </PropertyGroup>
  48. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
  49. <ConfigurationType>DynamicLibrary</ConfigurationType>
  50. <PlatformToolset>v140</PlatformToolset>
  51. <CharacterSet>MultiByte</CharacterSet>
  52. <WholeProgramOptimization>true</WholeProgramOptimization>
  53. </PropertyGroup>
  54. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration">
  55. <ConfigurationType>DynamicLibrary</ConfigurationType>
  56. <PlatformToolset>v140</PlatformToolset>
  57. <CharacterSet>MultiByte</CharacterSet>
  58. <WholeProgramOptimization>true</WholeProgramOptimization>
  59. </PropertyGroup>
  60. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
  61. <ConfigurationType>DynamicLibrary</ConfigurationType>
  62. <PlatformToolset>v140</PlatformToolset>
  63. <CharacterSet>MultiByte</CharacterSet>
  64. </PropertyGroup>
  65. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
  66. <ConfigurationType>DynamicLibrary</ConfigurationType>
  67. <PlatformToolset>v140</PlatformToolset>
  68. <CharacterSet>MultiByte</CharacterSet>
  69. </PropertyGroup>
  70. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  71. <ImportGroup Label="ExtensionSettings">
  72. </ImportGroup>
  73. <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
  74. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  75. <Import Project="..\..\build\vs\pjproject-vs14-win32-release-defaults.props" />
  76. <Import Project="..\..\build\vs\pjproject-vs14-release-dynamic-defaults.props" />
  77. </ImportGroup>
  78. <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
  79. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  80. <Import Project="..\..\build\vs\pjproject-vs14-win32-common-defaults.props" />
  81. <Import Project="..\..\build\vs\pjproject-vs14-debug-static-defaults.props" />
  82. </ImportGroup>
  83. <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
  84. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  85. <Import Project="..\..\build\vs\pjproject-vs14-win64-release-defaults.props" />
  86. <Import Project="..\..\build\vs\pjproject-vs14-release-dynamic-defaults.props" />
  87. </ImportGroup>
  88. <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets">
  89. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  90. <Import Project="..\..\build\vs\pjproject-vs14-arm64-release-defaults.props" />
  91. <Import Project="..\..\build\vs\pjproject-vs14-release-dynamic-defaults.props" />
  92. </ImportGroup>
  93. <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
  94. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  95. <Import Project="..\..\build\vs\pjproject-vs14-win64-common-defaults.props" />
  96. <Import Project="..\..\build\vs\pjproject-vs14-debug-static-defaults.props" />
  97. </ImportGroup>
  98. <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets">
  99. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  100. <Import Project="..\..\build\vs\pjproject-vs14-arm64-common-defaults.props" />
  101. <Import Project="..\..\build\vs\pjproject-vs14-debug-static-defaults.props" />
  102. </ImportGroup>
  103. <PropertyGroup Label="UserMacros" />
  104. <PropertyGroup>
  105. <_ProjectFileVersion>14.0.25431.1</_ProjectFileVersion>
  106. <OutDir>..\src\swig\java\output\</OutDir>
  107. </PropertyGroup>
  108. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  109. <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  110. <CodeAnalysisRules />
  111. <CodeAnalysisRuleAssemblies />
  112. </PropertyGroup>
  113. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
  114. <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  115. <CodeAnalysisRules />
  116. <CodeAnalysisRuleAssemblies />
  117. </PropertyGroup>
  118. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
  119. <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  120. <CodeAnalysisRules />
  121. <CodeAnalysisRuleAssemblies />
  122. </PropertyGroup>
  123. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
  124. <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  125. <CodeAnalysisRules />
  126. <CodeAnalysisRuleAssemblies />
  127. </PropertyGroup>
  128. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
  129. <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  130. <CodeAnalysisRules />
  131. <CodeAnalysisRuleAssemblies />
  132. </PropertyGroup>
  133. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
  134. <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  135. <CodeAnalysisRules />
  136. <CodeAnalysisRuleAssemblies />
  137. </PropertyGroup>
  138. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
  139. <ClCompile>
  140. <Optimization>Disabled</Optimization>
  141. <AdditionalIncludeDirectories>../../pjsip/include;../../pjlib/include;../../pjlib-util/include;../../pjmedia/include;../../pjnath/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  142. <MinimalRebuild>true</MinimalRebuild>
  143. <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
  144. <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
  145. <WarningLevel>Level3</WarningLevel>
  146. <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
  147. </ClCompile>
  148. <Link>
  149. <AdditionalDependencies>Iphlpapi.lib;dsound.lib;dxguid.lib;netapi32.lib;mswsock.lib;ws2_32.lib;odbc32.lib;odbccp32.lib;ole32.lib;user32.lib;gdi32.lib;advapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
  150. <OutputFile>..\src\swig\java\output\pjsua2.dll</OutputFile>
  151. <IgnoreSpecificDefaultLibraries>msvcrt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
  152. <GenerateDebugInformation>true</GenerateDebugInformation>
  153. <TargetMachine>MachineX86</TargetMachine>
  154. </Link>
  155. </ItemDefinitionGroup>
  156. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
  157. <Midl>
  158. <TargetEnvironment>X64</TargetEnvironment>
  159. </Midl>
  160. <ClCompile>
  161. <Optimization>Disabled</Optimization>
  162. <AdditionalIncludeDirectories>../../pjsip/include;../../pjlib/include;../../pjlib-util/include;../../pjmedia/include;../../pjnath/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  163. <MinimalRebuild>true</MinimalRebuild>
  164. <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
  165. <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
  166. <WarningLevel>Level3</WarningLevel>
  167. <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
  168. </ClCompile>
  169. <Link>
  170. <AdditionalDependencies>Iphlpapi.lib;dsound.lib;dxguid.lib;netapi32.lib;mswsock.lib;ws2_32.lib;odbc32.lib;odbccp32.lib;ole32.lib;user32.lib;gdi32.lib;advapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
  171. <OutputFile>..\src\swig\java\output\pjsua2.dll</OutputFile>
  172. <IgnoreSpecificDefaultLibraries>msvcrt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
  173. <GenerateDebugInformation>true</GenerateDebugInformation>
  174. <TargetMachine>MachineX64</TargetMachine>
  175. </Link>
  176. </ItemDefinitionGroup>
  177. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
  178. <Midl />
  179. <ClCompile>
  180. <Optimization>Disabled</Optimization>
  181. <AdditionalIncludeDirectories>../../pjsip/include;../../pjlib/include;../../pjlib-util/include;../../pjmedia/include;../../pjnath/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  182. <MinimalRebuild>true</MinimalRebuild>
  183. <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
  184. <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
  185. <WarningLevel>Level3</WarningLevel>
  186. <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
  187. </ClCompile>
  188. <Link>
  189. <AdditionalDependencies>Iphlpapi.lib;dsound.lib;dxguid.lib;netapi32.lib;mswsock.lib;ws2_32.lib;odbc32.lib;odbccp32.lib;ole32.lib;user32.lib;gdi32.lib;advapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
  190. <OutputFile>..\src\swig\java\output\pjsua2.dll</OutputFile>
  191. <IgnoreSpecificDefaultLibraries>msvcrt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
  192. <GenerateDebugInformation>true</GenerateDebugInformation>
  193. </Link>
  194. </ItemDefinitionGroup>
  195. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
  196. <ClCompile>
  197. <AdditionalIncludeDirectories>../../pjsip/include;../../pjlib/include;../../pjlib-util/include;../../pjmedia/include;../../pjnath/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  198. <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
  199. <WarningLevel>Level3</WarningLevel>
  200. <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
  201. </ClCompile>
  202. <Link>
  203. <AdditionalDependencies>Iphlpapi.lib;dsound.lib;dxguid.lib;netapi32.lib;mswsock.lib;ws2_32.lib;odbc32.lib;odbccp32.lib;ole32.lib;user32.lib;gdi32.lib;advapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
  204. <OutputFile>..\src\swig\java\output\pjsua2.dll</OutputFile>
  205. <IgnoreSpecificDefaultLibraries>msvcrt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
  206. <GenerateDebugInformation>true</GenerateDebugInformation>
  207. <OptimizeReferences>true</OptimizeReferences>
  208. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  209. <TargetMachine>MachineX86</TargetMachine>
  210. </Link>
  211. </ItemDefinitionGroup>
  212. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
  213. <Midl>
  214. <TargetEnvironment>X64</TargetEnvironment>
  215. </Midl>
  216. <ClCompile>
  217. <AdditionalIncludeDirectories>../../pjsip/include;../../pjlib/include;../../pjlib-util/include;../../pjmedia/include;../../pjnath/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  218. <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
  219. <WarningLevel>Level3</WarningLevel>
  220. <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
  221. </ClCompile>
  222. <Link>
  223. <AdditionalDependencies>Iphlpapi.lib;dsound.lib;dxguid.lib;netapi32.lib;mswsock.lib;ws2_32.lib;odbc32.lib;odbccp32.lib;ole32.lib;user32.lib;gdi32.lib;advapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
  224. <OutputFile>..\src\swig\java\output\pjsua2.dll</OutputFile>
  225. <IgnoreSpecificDefaultLibraries>msvcrt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
  226. <GenerateDebugInformation>true</GenerateDebugInformation>
  227. <OptimizeReferences>true</OptimizeReferences>
  228. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  229. <TargetMachine>MachineX64</TargetMachine>
  230. </Link>
  231. </ItemDefinitionGroup>
  232. <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
  233. <Midl />
  234. <ClCompile>
  235. <AdditionalIncludeDirectories>../../pjsip/include;../../pjlib/include;../../pjlib-util/include;../../pjmedia/include;../../pjnath/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  236. <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
  237. <WarningLevel>Level3</WarningLevel>
  238. <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
  239. </ClCompile>
  240. <Link>
  241. <AdditionalDependencies>Iphlpapi.lib;dsound.lib;dxguid.lib;netapi32.lib;mswsock.lib;ws2_32.lib;odbc32.lib;odbccp32.lib;ole32.lib;user32.lib;gdi32.lib;advapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
  242. <OutputFile>..\src\swig\java\output\pjsua2.dll</OutputFile>
  243. <IgnoreSpecificDefaultLibraries>msvcrt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>
  244. <GenerateDebugInformation>true</GenerateDebugInformation>
  245. <OptimizeReferences>true</OptimizeReferences>
  246. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  247. </Link>
  248. </ItemDefinitionGroup>
  249. <ItemGroup>
  250. <ClCompile Include="..\src\swig\java\output\pjsua2_wrap.cpp" />
  251. </ItemGroup>
  252. <ItemGroup>
  253. <ClInclude Include="..\src\swig\java\output\pjsua2_wrap.h" />
  254. </ItemGroup>
  255. <ItemGroup>
  256. <CustomBuild Include="..\src\swig\pjsua2.i">
  257. <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%40echo off
  258. %40echo **************************************************************
  259. %40echo - Make sure %27swig%27 and %27javac%27 locations are in your PATH environment vars.
  260. %40echo - Make sure Java SDK header file directories
  261. %40echo (e.g: C:\Program Files (x86)\Java\jdk1.7.0_79\include and C:\Program Files (x86)\Java\jdk1.7.0_79\include\win32)
  262. %40echo are in your MSVC header search path
  263. %40echo **************************************************************
  264. %40echo on
  265. %40echo Building pjsua2.dll to $(OutputDir)
  266. mkdir $(OutDir)org\pjsip\pjsua2
  267. swig -c++ -java -package org.pjsip.pjsua2 -I$(ProjectDir)..\..\pjsip\include -I$(ProjectDir)..\..\pjlib\include -outdir $(OutDir)org\pjsip\pjsua2 -o $(OutDir)pjsua2_wrap.cpp %(FullPath)
  268. javac -d $(OutDir) $(OutDir)org\pjsip\pjsua2\*.java
  269. %40echo Building sample app
  270. javac -d $(OutDir) -classpath $(OutDir) ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java
  271. javac -d $(OutDir) -classpath $(OutDir) $(OutDir)..\test.java
  272. javac -d $(OutDir) -classpath $(OutDir) $(OutDir)..\sample.java
  273. %40echo **************************************************************
  274. %40echo After the build completed succesfully, try to run the test app, e.g:
  275. %40echo java -cp D:\projects\pjproject\pjsip-apps\src\swig\java\output -Djava.library.path="D:\projects\pjproject\pjsip-apps\src\swig\java\output" org.pjsip.pjsua2.app.sample
  276. %40echo **************************************************************
  277. %40echo off
  278. </Command>
  279. <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(OutDir)pjsua2_wrap.cpp;$(OutDir)pjsua2_wrap.h;%(Outputs)</Outputs>
  280. <Command Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%40echo off
  281. %40echo **************************************************************
  282. %40echo - Make sure %27swig%27 and %27javac%27 locations are in your PATH environment vars.
  283. %40echo - Make sure Java SDK header file directories
  284. %40echo (e.g: C:\Program Files (x86)\Java\jdk1.7.0_79\include and C:\Program Files (x86)\Java\jdk1.7.0_79\include\win32)
  285. %40echo are in your MSVC header search path
  286. %40echo **************************************************************
  287. %40echo on
  288. %40echo Building pjsua2.dll to $(OutDir)
  289. mkdir $(OutDir)org\pjsip\pjsua2
  290. swig -c++ -java -package org.pjsip.pjsua2 -I$(ProjectDir)..\..\pjsip\include -I$(ProjectDir)..\..\pjlib\include -outdir $(OutDir)org\pjsip\pjsua2 -o $(OutDir)pjsua2_wrap.cpp %(FullPath)
  291. javac -d $(OutDir) $(OutDir)org\pjsip\pjsua2\*.java
  292. %40echo Building sample app
  293. javac -d $(OutDir) -classpath $(OutDir) ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java
  294. javac -d $(OutDir) -classpath $(OutDir) $(OutDir)..\test.java
  295. javac -d $(OutDir) -classpath $(OutDir) $(OutDir)..\sample.java
  296. %40echo **************************************************************
  297. %40echo After the build completed succesfully, try to run the test app, e.g:
  298. %40echo java -cp D:\projects\pjproject\pjsip-apps\src\swig\java\output -Djava.library.path="D:\projects\pjproject\pjsip-apps\src\swig\java\output" org.pjsip.pjsua2.app.sample
  299. %40echo **************************************************************
  300. %40echo off
  301. </Command>
  302. <Command Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">%40echo off
  303. %40echo **************************************************************
  304. %40echo - Make sure %27swig%27 and %27javac%27 locations are in your PATH environment vars.
  305. %40echo - Make sure Java SDK header file directories
  306. %40echo (e.g: C:\Program Files (x86)\Java\jdk1.7.0_79\include and C:\Program Files (x86)\Java\jdk1.7.0_79\include\win32)
  307. %40echo are in your MSVC header search path
  308. %40echo **************************************************************
  309. %40echo on
  310. %40echo Building pjsua2.dll to $(OutDir)
  311. mkdir $(OutDir)org\pjsip\pjsua2
  312. swig -c++ -java -package org.pjsip.pjsua2 -I$(ProjectDir)..\..\pjsip\include -I$(ProjectDir)..\..\pjlib\include -outdir $(OutDir)org\pjsip\pjsua2 -o $(OutDir)pjsua2_wrap.cpp %(FullPath)
  313. javac -d $(OutDir) $(OutDir)org\pjsip\pjsua2\*.java
  314. %40echo Building sample app
  315. javac -d $(OutDir) -classpath $(OutDir) ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java
  316. javac -d $(OutDir) -classpath $(OutDir) $(OutDir)..\test.java
  317. javac -d $(OutDir) -classpath $(OutDir) $(OutDir)..\sample.java
  318. %40echo **************************************************************
  319. %40echo After the build completed succesfully, try to run the test app, e.g:
  320. %40echo java -cp D:\projects\pjproject\pjsip-apps\src\swig\java\output -Djava.library.path="D:\projects\pjproject\pjsip-apps\src\swig\java\output" org.pjsip.pjsua2.app.sample
  321. %40echo **************************************************************
  322. %40echo off
  323. </Command>
  324. <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(Filename)_wrap.cxx;%(Outputs)</Outputs>
  325. <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">%(Filename)_wrap.cxx;%(Outputs)</Outputs>
  326. <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%40echo off
  327. %40echo **************************************************************
  328. %40echo - Make sure %27swig%27 and %27javac%27 locations are in your PATH environment vars.
  329. %40echo - Make sure Java SDK header file directories
  330. %40echo (e.g: C:\Program Files (x86)\Java\jdk1.7.0_79\include and C:\Program Files (x86)\Java\jdk1.7.0_79\include\win32)
  331. %40echo are in your MSVC header search path
  332. %40echo **************************************************************
  333. %40echo on
  334. %40echo Building pjsua2.dll to $(OutDir)
  335. mkdir $(OutDir)org\pjsip\pjsua2
  336. swig -c++ -java -package org.pjsip.pjsua2 -I$(ProjectDir)..\..\pjsip\include -I$(ProjectDir)..\..\pjlib\include -outdir $(OutDir)org\pjsip\pjsua2 -o $(OutDir)pjsua2_wrap.cpp %(FullPath)
  337. javac -d $(OutDir) $(OutDir)org\pjsip\pjsua2\*.java
  338. %40echo Building sample app
  339. javac -d $(OutDir) -classpath $(OutDir) ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java
  340. javac -d $(OutDir) -classpath $(OutDir) $(OutDir)..\test.java
  341. javac -d $(OutDir) -classpath $(OutDir) $(OutDir)..\sample.java
  342. %40echo **************************************************************
  343. %40echo After the build completed succesfully, try to run the test app, e.g:
  344. %40echo java -cp D:\projects\pjproject\pjsip-apps\src\swig\java\output -Djava.library.path="D:\projects\pjproject\pjsip-apps\src\swig\java\output" org.pjsip.pjsua2.app.sample
  345. %40echo **************************************************************
  346. %40echo off
  347. </Command>
  348. <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(OutDir)pjsua2_wrap.cpp;$(OutDir)pjsua2_wrap.h;%(Outputs)</Outputs>
  349. <Command Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%40echo off
  350. %40echo **************************************************************
  351. %40echo - Make sure %27swig%27 and %27javac%27 locations are in your PATH environment vars.
  352. %40echo - Make sure Java SDK header file directories
  353. %40echo (e.g: C:\Program Files (x86)\Java\jdk1.7.0_79\include and C:\Program Files (x86)\Java\jdk1.7.0_79\include\win32)
  354. %40echo are in your MSVC header search path
  355. %40echo **************************************************************
  356. %40echo on
  357. %40echo Building pjsua2.dll to $(OutDir)
  358. mkdir $(OutDir)org\pjsip\pjsua2
  359. swig -c++ -java -package org.pjsip.pjsua2 -I$(ProjectDir)..\..\pjsip\include -I$(ProjectDir)..\..\pjlib\include -outdir $(OutDir)org\pjsip\pjsua2 -o $(OutDir)pjsua2_wrap.cpp %(FullPath)
  360. javac -d $(OutDir) $(OutDir)org\pjsip\pjsua2\*.java
  361. %40echo Building sample app
  362. javac -d $(OutDir) -classpath $(OutDir) ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java
  363. javac -d $(OutDir) -classpath $(OutDir) $(OutDir)..\test.java
  364. javac -d $(OutDir) -classpath $(OutDir) $(OutDir)..\sample.java
  365. %40echo **************************************************************
  366. %40echo After the build completed succesfully, try to run the test app, e.g:
  367. %40echo java -cp D:\projects\pjproject\pjsip-apps\src\swig\java\output -Djava.library.path="D:\projects\pjproject\pjsip-apps\src\swig\java\output" org.pjsip.pjsua2.app.sample
  368. %40echo **************************************************************
  369. %40echo off
  370. </Command>
  371. <Command Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">%40echo off
  372. %40echo **************************************************************
  373. %40echo - Make sure %27swig%27 and %27javac%27 locations are in your PATH environment vars.
  374. %40echo - Make sure Java SDK header file directories
  375. %40echo (e.g: C:\Program Files (x86)\Java\jdk1.7.0_79\include and C:\Program Files (x86)\Java\jdk1.7.0_79\include\win32)
  376. %40echo are in your MSVC header search path
  377. %40echo **************************************************************
  378. %40echo on
  379. %40echo Building pjsua2.dll to $(OutDir)
  380. mkdir $(OutDir)org\pjsip\pjsua2
  381. swig -c++ -java -package org.pjsip.pjsua2 -I$(ProjectDir)..\..\pjsip\include -I$(ProjectDir)..\..\pjlib\include -outdir $(OutDir)org\pjsip\pjsua2 -o $(OutDir)pjsua2_wrap.cpp %(FullPath)
  382. javac -d $(OutDir) $(OutDir)org\pjsip\pjsua2\*.java
  383. %40echo Building sample app
  384. javac -d $(OutDir) -classpath $(OutDir) ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java
  385. javac -d $(OutDir) -classpath $(OutDir) $(OutDir)..\test.java
  386. javac -d $(OutDir) -classpath $(OutDir) $(OutDir)..\sample.java
  387. %40echo **************************************************************
  388. %40echo After the build completed succesfully, try to run the test app, e.g:
  389. %40echo java -cp D:\projects\pjproject\pjsip-apps\src\swig\java\output -Djava.library.path="D:\projects\pjproject\pjsip-apps\src\swig\java\output" org.pjsip.pjsua2.app.sample
  390. %40echo **************************************************************
  391. %40echo off
  392. </Command>
  393. <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(OutDir)pjsua2_wrap.cpp;$(OutDir)pjsua2_wrap.h;%(Outputs)</Outputs>
  394. <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">$(OutDir)pjsua2_wrap.cpp;$(OutDir)pjsua2_wrap.h;%(Outputs)</Outputs>
  395. </CustomBuild>
  396. </ItemGroup>
  397. <ItemGroup>
  398. <ProjectReference Include="..\..\pjsip\build\pjsua2_lib.vcxproj">
  399. <Project>{b82cdd25-6903-430e-bd38-d8129a2015c1}</Project>
  400. </ProjectReference>
  401. <ProjectReference Include="libpjproject.vcxproj">
  402. <Project>{23d7679c-764c-4e02-8b29-bb882ceeefe2}</Project>
  403. </ProjectReference>
  404. </ItemGroup>
  405. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  406. <ImportGroup Label="ExtensionTargets">
  407. </ImportGroup>
  408. </Project>