diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e2c091..ea3a123 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/win32/CMakeLists.txt b/win32/CMakeLists.txt new file mode 100644 index 0000000..65c8999 --- /dev/null +++ b/win32/CMakeLists.txt @@ -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) \ No newline at end of file diff --git a/win32/network.c b/win32/network.c new file mode 100644 index 0000000..44b75a1 --- /dev/null +++ b/win32/network.c @@ -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 . + */ diff --git a/win32/win32.h b/win32/win32.h new file mode 100644 index 0000000..2466047 --- /dev/null +++ b/win32/win32.h @@ -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 . + */ + +#ifndef DICREMOTE_WIN32_WIN32_H_ +#define DICREMOTE_WIN32_WIN32_H_ + +#endif // DICREMOTE_WIN32_WIN32_H_