Skip to content
Snippets Groups Projects
Commit 4c5bf012 authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

msvc: move MSVC to compat folder and ignore cmake generated files

Change-Id: I5d1d0ac43221264a6cd756894dde07648382f6c3
parent 6f74188f
No related branches found
No related tags found
No related merge requests found
...@@ -40,6 +40,9 @@ libtool ...@@ -40,6 +40,9 @@ libtool
*.1 *.1
*-glue.h *-glue.h
# Ignored folders
build-local/
# Ignore rendered docs # Ignore rendered docs
doc/doxygen/core-doc doc/doxygen/core-doc
doc/doxygen/gtk-gui-doc doc/doxygen/gtk-gui-doc
......
...@@ -6,9 +6,9 @@ project(ring-daemon C CXX) ...@@ -6,9 +6,9 @@ project(ring-daemon C CXX)
# Source groups # Source groups
################################################################################ ################################################################################
# MSVC, src source group # compat, src source group
add_subdirectory("MSVC") add_subdirectory("compat")
add_subdirectory("src") add_subdirectory("src")
source_group("Source Files" FILES ${Source_Files}) source_group("Source Files" FILES ${Source_Files})
...@@ -100,7 +100,7 @@ if(MSVC) ...@@ -100,7 +100,7 @@ if(MSVC)
################################################################################ ################################################################################
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64") if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64")
set_target_properties(${PROJECT_NAME} PROPERTIES set_target_properties(${PROJECT_NAME} PROPERTIES
OUTPUT_DIRECTORY_RELEASELIB_WIN32 "${CMAKE_CURRENT_SOURCE_DIR}/MSVC/${CMAKE_VS_PLATFORM_NAME}/$<CONFIG>/bin/" OUTPUT_DIRECTORY_RELEASELIB_WIN32 "${CMAKE_CURRENT_SOURCE_DIR}/build-local/${CMAKE_VS_PLATFORM_NAME}/$<CONFIG>/bin/"
) )
endif() endif()
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64") if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64")
...@@ -125,7 +125,6 @@ if(MSVC) ...@@ -125,7 +125,6 @@ if(MSVC)
"${CMAKE_CURRENT_SOURCE_DIR}/contrib/build/natpmp" "${CMAKE_CURRENT_SOURCE_DIR}/contrib/build/natpmp"
">" ">"
"${CMAKE_CURRENT_SOURCE_DIR}/.;" "${CMAKE_CURRENT_SOURCE_DIR}/.;"
"${CMAKE_CURRENT_SOURCE_DIR}/MSVC;"
"${CMAKE_CURRENT_SOURCE_DIR}/src;" "${CMAKE_CURRENT_SOURCE_DIR}/src;"
"${CMAKE_CURRENT_SOURCE_DIR}/src/client;" "${CMAKE_CURRENT_SOURCE_DIR}/src/client;"
"${CMAKE_CURRENT_SOURCE_DIR}/src/config;" "${CMAKE_CURRENT_SOURCE_DIR}/src/config;"
...@@ -136,6 +135,7 @@ if(MSVC) ...@@ -136,6 +135,7 @@ if(MSVC)
"${CMAKE_CURRENT_SOURCE_DIR}/src/jamidht;" "${CMAKE_CURRENT_SOURCE_DIR}/src/jamidht;"
"${CMAKE_CURRENT_SOURCE_DIR}/src/security;" "${CMAKE_CURRENT_SOURCE_DIR}/src/security;"
"${CMAKE_CURRENT_SOURCE_DIR}/src/sip;" "${CMAKE_CURRENT_SOURCE_DIR}/src/sip;"
"${CMAKE_CURRENT_SOURCE_DIR}/compat/msvc;"
"${CMAKE_CURRENT_SOURCE_DIR}/src/upnp;" "${CMAKE_CURRENT_SOURCE_DIR}/src/upnp;"
"${CMAKE_CURRENT_SOURCE_DIR}/src/upnp/igd;" "${CMAKE_CURRENT_SOURCE_DIR}/src/upnp/igd;"
"${CMAKE_CURRENT_SOURCE_DIR}/src/upnp/protocol;" "${CMAKE_CURRENT_SOURCE_DIR}/src/upnp/protocol;"
......
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
#output directories
DebugLib/
Debug/
ReleaseLib/
Release/
.config/
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
*.VC.VC.opendb
*.VC.db
*.db
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUNIT
*.VisualState.xml
TestResult.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# DNX
project.lock.json
artifacts/
*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding add-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Microsoft Azure ApplicationInsights config file
ApplicationInsights.config
# Windows Store app package directory
AppPackages/
BundleArtifacts/
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
orleans.codegen.cs
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
*.mdf
*.ldf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
# FAKE - F# Make
.fake/
!config.h
\ No newline at end of file
################################################################################
# Source groups - compat
################################################################################
add_subdirectory(msvc)
set (Source_Files ${Source_Files} PARENT_SCOPE)
\ No newline at end of file
################################################################################ ################################################################################
# Source groups - MSVC # Source groups - msvc
################################################################################ ################################################################################
if(MSVC) if(MSVC)
list (APPEND Source_Files list (APPEND Source_Files
"${CMAKE_CURRENT_SOURCE_DIR}/config.h" "${CMAKE_CURRENT_SOURCE_DIR}/config.h"
......
File moved
File moved
File moved
File moved
File moved
...@@ -25,7 +25,8 @@ log = None ...@@ -25,7 +25,8 @@ log = None
# project paths # project paths
daemon_msvc_dir = os.path.dirname(os.path.realpath(__file__)) daemon_msvc_dir = os.path.dirname(os.path.realpath(__file__))
daemon_dir = os.path.dirname(daemon_msvc_dir) daemon_dir = os.path.dirname(os.path.dirname(daemon_msvc_dir))
daemon_msvc_build_local_dir = daemon_dir + r'\build-local'
contrib_src_dir = daemon_dir + r'\contrib\src' contrib_src_dir = daemon_dir + r'\contrib\src'
contrib_build_dir = daemon_dir + r'\contrib\build' contrib_build_dir = daemon_dir + r'\contrib\build'
contrib_tmp_dir = daemon_dir + r'\contrib\tarballs' contrib_tmp_dir = daemon_dir + r'\contrib\tarballs'
...@@ -126,7 +127,7 @@ def getVSEnvCmd(arch='x64', platform='', version=''): ...@@ -126,7 +127,7 @@ def getVSEnvCmd(arch='x64', platform='', version=''):
def make_daemon(pkg_info, force, sdk_version, toolset): def make_daemon(pkg_info, force, sdk_version, toolset):
cmake_script = 'cmake -DCMAKE_CONFIGURATION_TYPES="ReleaseLib_win32" -DCMAKE_VS_PLATFORM_NAME="x64" -G ' + getCMakeGenerator(getLatestVSVersion()) + ' -T $(DefaultPlatformToolset) ..' cmake_script = 'cmake -DCMAKE_CONFIGURATION_TYPES="ReleaseLib_win32" -DCMAKE_VS_PLATFORM_NAME="x64" -G ' + getCMakeGenerator(getLatestVSVersion()) + ' -T $(DefaultPlatformToolset) -S ../../ -B ../../build-local'
root_logger.warning("Cmake generating vcxproj files") root_logger.warning("Cmake generating vcxproj files")
result = getSHrunner().exec_batch(cmake_script) result = getSHrunner().exec_batch(cmake_script)
if result[0] is not 0: if result[0] is not 0:
...@@ -138,7 +139,7 @@ def make_daemon(pkg_info, force, sdk_version, toolset): ...@@ -138,7 +139,7 @@ def make_daemon(pkg_info, force, sdk_version, toolset):
"Building daemon with preferred sdk version %s and toolset %s", sdk_version, toolset) "Building daemon with preferred sdk version %s and toolset %s", sdk_version, toolset)
env_set = 'false' if pkg_info.get('with_env', '') == '' else 'true' env_set = 'false' if pkg_info.get('with_env', '') == '' else 'true'
sdk_to_use = sdk_version if env_set == 'false' else pkg_info.get('with_env', '') sdk_to_use = sdk_version if env_set == 'false' else pkg_info.get('with_env', '')
build('daemon', daemon_msvc_dir, build('daemon', daemon_msvc_build_local_dir,
pkg_info.get('project_paths', []), pkg_info.get('project_paths', []),
pkg_info.get('custom_scripts', {}), pkg_info.get('custom_scripts', {}),
env_set, env_set,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment