Add win32 target.

This commit is contained in:
2019-10-26 22:26:53 +01:00
parent 978e39bd81
commit 8ada7fb4dc
4 changed files with 49 additions and 1 deletions

View File

@@ -37,7 +37,7 @@ else ()
endif ()
set(DIC_PORTS "linux;wii" CACHE STRING "List of ports to build")
set(DIC_PORTS "linux;wii;win32" CACHE STRING "List of ports to build")
foreach (PORT IN LISTS DIC_PORTS)
add_subdirectory(${PORT})
endforeach (PORT)

11
win32/CMakeLists.txt Normal file
View File

@@ -0,0 +1,11 @@
project("dicremote-win32" C)
if (NOT "${CMAKE_SYSTEM}" MATCHES "Windows")
return()
endif ()
set(PLATFORM_SOURCES "win32.h" network.c)
add_executable(dicremote ${PLATFORM_SOURCES})
target_link_libraries(dicremote dicremotecore ws2_32)

16
win32/network.c Normal file
View File

@@ -0,0 +1,16 @@
/*
* This file is part of the DiscImageChef Remote Server.
* Copyright (c) 2019 Natalia Portillo.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

21
win32/win32.h Normal file
View File

@@ -0,0 +1,21 @@
/*
* This file is part of the DiscImageChef Remote Server.
* Copyright (c) 2019 Natalia Portillo.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DICREMOTE_WIN32_WIN32_H_
#define DICREMOTE_WIN32_WIN32_H_
#endif // DICREMOTE_WIN32_WIN32_H_