mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Add win32 target.
This commit is contained in:
@@ -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
11
win32/CMakeLists.txt
Normal 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
16
win32/network.c
Normal 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
21
win32/win32.h
Normal 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_
|
||||
Reference in New Issue
Block a user