diff --git a/lsteamclient/Makefile.in b/lsteamclient/Makefile.in deleted file mode 100644 index 88e436f2..00000000 --- a/lsteamclient/Makefile.in +++ /dev/null @@ -1,175 +0,0 @@ -# Generated from /home/valve/steampfx/drive_c/Program Files/Steam/steamclient.dll by winedump. -MODULE = lsteamclient.dll - -EXTRADEFS = -Wno-unused-variable -Wno-attributes -DSTEAM_API_EXPORTS - - -C_SRCS = \ - steamclient_main.c \ - steamclient_wrappers.c \ - winISteamClient.c \ - winISteamUser.c \ - winISteamFriends.c \ - winISteamUtils.c \ - winISteamMatchmaking.c \ - winISteamMatchmakingServers.c \ - winISteamRemoteStorage.c \ - winISteamUserStats.c \ - winISteamApps.c \ - winISteamNetworking.c \ - winISteamScreenshots.c \ - winISteamMusic.c \ - winISteamMusicRemote.c \ - winISteamHTTP.c \ - winISteamController.c \ - winISteamUGC.c \ - winISteamAppList.c \ - winISteamHTMLSurface.c \ - winISteamInventory.c \ - winISteamVideo.c \ - winISteamAppTicket.c \ - winISteamGameServer.c \ - winISteamGameServerStats.c \ - winISteamGameCoordinator.c \ - winISteamParentalSettings.c \ - winISteamUnifiedMessages.c \ - winISteamMasterServerUpdater.c \ - -CPP_SRCS = \ - cppISteamClient_SteamClient017.cpp \ - cppISteamUser_SteamUser019.cpp \ - cb_converters_142.cpp \ - cppISteamFriends_SteamFriends015.cpp \ - cppISteamUtils_SteamUtils009.cpp \ - cppISteamMatchmaking_SteamMatchMaking009.cpp \ - cppISteamMatchmakingServers_SteamMatchMakingServers002.cpp \ - cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014.cpp \ - cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION011.cpp \ - cppISteamApps_STEAMAPPS_INTERFACE_VERSION008.cpp \ - cppISteamNetworking_SteamNetworking005.cpp \ - cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003.cpp \ - cppISteamMusic_STEAMMUSIC_INTERFACE_VERSION001.cpp \ - cppISteamMusicRemote_STEAMMUSICREMOTE_INTERFACE_VERSION001.cpp \ - cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION002.cpp \ - cppISteamController_SteamController006.cpp \ - cppISteamUGC_STEAMUGC_INTERFACE_VERSION010.cpp \ - cppISteamAppList_STEAMAPPLIST_INTERFACE_VERSION001.cpp \ - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004.cpp \ - cppISteamInventory_STEAMINVENTORY_INTERFACE_V002.cpp \ - cppISteamVideo_STEAMVIDEO_INTERFACE_V002.cpp \ - cppISteamAppTicket_STEAMAPPTICKET_INTERFACE_VERSION001.cpp \ - cppISteamGameServer_SteamGameServer012.cpp \ - cppISteamGameServerStats_SteamGameServerStats001.cpp \ - cppISteamGameCoordinator_SteamGameCoordinator001.cpp \ - cppISteamParentalSettings_STEAMPARENTALSETTINGS_INTERFACE_VERSION001.cpp \ - cppISteamUnifiedMessages_STEAMUNIFIEDMESSAGES_INTERFACE_VERSION001.cpp \ - cb_converters_141.cpp \ - cppISteamController_SteamController005.cpp \ - cb_converters_140.cpp \ - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003.cpp \ - cppISteamUtils_SteamUtils008.cpp \ - cppISteamUGC_STEAMUGC_INTERFACE_VERSION009.cpp \ - cppISteamInventory_STEAMINVENTORY_INTERFACE_V001.cpp \ - cppISteamVideo_STEAMVIDEO_INTERFACE_V001.cpp \ - cppISteamController_SteamController004.cpp \ - cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013.cpp \ - cb_converters_137.cpp \ - cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002.cpp \ - cppISteamController_SteamController003.cpp \ - cppISteamUGC_STEAMUGC_INTERFACE_VERSION008.cpp \ - cppISteamUser_SteamUser018.cpp \ - cppISteamUtils_SteamUtils007.cpp \ - cb_converters_136.cpp \ - cppISteamApps_STEAMAPPS_INTERFACE_VERSION007.cpp \ - cppISteamUGC_STEAMUGC_INTERFACE_VERSION007.cpp \ - cb_converters_134.cpp \ - cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012.cpp \ - cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION.cpp \ - cppISteamUGC_STEAMUGC_INTERFACE_VERSION005.cpp \ - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002.cpp \ - cb_converters_132.cpp \ - cppISteamUGC_STEAMUGC_INTERFACE_VERSION003.cpp \ - cppISteamClient_SteamClient016.cpp \ - cppISteamUser_SteamUser017.cpp \ - cppISteamFriends_SteamFriends014.cpp \ - cppISteamApps_STEAMAPPS_INTERFACE_VERSION006.cpp \ - cppISteamClient_SteamClient015.cpp \ - cppISteamUGC_STEAMUGC_INTERFACE_VERSION002.cpp \ - cppISteamClient_SteamClient014.cpp \ - cppISteamClient_SteamClient012.cpp \ - cppISteamUtils_SteamUtils006.cpp \ - cb_converters_128.cpp \ - cppISteamUGC_STEAMUGC_INTERFACE_VERSION001.cpp \ - cppISteamGameServer_SteamGameServer011.cpp \ - cb_converters_125.cpp \ - cppISteamFriends_SteamFriends013.cpp \ - cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011.cpp \ - cppISteamApps_STEAMAPPS_INTERFACE_VERSION005.cpp \ - cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010.cpp \ - cb_converters_124.cpp \ - cppISteamUser_SteamUser016.cpp \ - cppISteamUtils_SteamUtils005.cpp \ - cb_converters_122.cpp \ - cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001.cpp \ - cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008.cpp \ - cppISteamHTTP_STEAMHTTP_INTERFACE_VERSION001.cpp \ - cppISteamFriends_SteamFriends011.cpp \ - cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006.cpp \ - cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION010.cpp \ - cb_converters_118.cpp \ - cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005.cpp \ - cb_converters_117.cpp \ - cppISteamApps_STEAMAPPS_INTERFACE_VERSION004.cpp \ - cppISteamClient_SteamClient011.cpp \ - cppISteamFriends_SteamFriends009.cpp \ - cb_converters_116.cpp \ - cppISteamMatchmaking_SteamMatchMaking008.cpp \ - cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION004.cpp \ - cppISteamGameServer_SteamGameServer010.cpp \ - cppISteamMasterServerUpdater_SteamMasterServerUpdater001.cpp \ - cppISteamClient_SteamClient010.cpp \ - cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION009.cpp \ - cppISteamUser_SteamUser014.cpp \ - cppISteamFriends_SteamFriends008.cpp \ - cb_converters_112.cpp \ - cppISteamNetworking_SteamNetworking004.cpp \ - cppISteamClient_SteamClient009.cpp \ - cppISteamFriends_SteamFriends007.cpp \ - cb_converters_111.cpp \ - cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION007.cpp \ - cppISteamApps_STEAMAPPS_INTERFACE_VERSION003.cpp \ - cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION002.cpp \ - cppISteamUser_SteamUser013.cpp \ - cppISteamFriends_SteamFriends006.cpp \ - cppISteamNetworking_SteamNetworking003.cpp \ - cppISteamFriends_SteamFriends005.cpp \ - cppISteamClient_SteamClient008.cpp \ - cppISteamMatchmaking_SteamMatchMaking007.cpp \ - cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION006.cpp \ - cppISteamGameServer_SteamGameServer009.cpp \ - cppISteamUtils_SteamUtils004.cpp \ - cppISteamUser_SteamUser012.cpp \ - cppISteamMatchmakingServers_SteamMatchMakingServers001.cpp \ - cppISteamMatchmaking_SteamMatchMaking006.cpp \ - cb_converters_104.cpp \ - cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION005.cpp \ - cppISteamNetworking_SteamNetworking002.cpp \ - cppISteamGameServer_SteamGameServer008.cpp \ - cppISteamClient_SteamClient007.cpp \ - cppISteamUser_SteamUser011.cpp \ - cppISteamUtils_SteamUtils002.cpp \ - cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION004.cpp \ - cppISteamApps_STEAMAPPS_INTERFACE_VERSION002.cpp \ - cppISteamFriends_SteamFriends004.cpp \ - cppISteamMatchmaking_SteamMatchMaking004.cpp \ - cb_converters_102.cpp \ - cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION003.cpp \ - cppISteamNetworking_SteamNetworking001.cpp \ - cppISteamGameServer_SteamGameServer005.cpp \ - cppISteamUser_SteamUser010.cpp \ - cppISteamFriends_SteamFriends003.cpp \ - cppISteamMatchmaking_SteamMatchMaking002.cpp \ - cppISteamUser_SteamUser009.cpp \ - cppISteamApps_STEAMAPPS_INTERFACE_VERSION001.cpp \ - cb_converters_100.cpp \ - cppISteamGameServer_SteamGameServer004.cpp \ diff --git a/lsteamclient/Makefile.in.orig b/lsteamclient/Makefile.in.orig deleted file mode 100644 index 1366b581..00000000 --- a/lsteamclient/Makefile.in.orig +++ /dev/null @@ -1,9 +0,0 @@ -# Generated from /home/valve/steampfx/drive_c/Program Files/Steam/steamclient.dll by winedump. -MODULE = lsteamclient.dll - -EXTRADEFS = -Wno-unused-variable -Wno-attributes -DSTEAM_API_EXPORTS - - -C_SRCS = \ - steamclient_main.c \ - steamclient_wrappers.c \ diff --git a/lsteamclient/gen.sh b/lsteamclient/gen.sh index 5df06cb2..b80c818c 100755 --- a/lsteamclient/gen.sh +++ b/lsteamclient/gen.sh @@ -8,11 +8,3 @@ rm cpp*.h rm cb*.h rm cb*.cpp rm cb*.dat - -h=$(md5sum Makefile.in) -cp Makefile.in.orig Makefile.in - -./gen_wrapper.py -if [ "$h" != "$(md5sum Makefile.in)" ]; then - echo "Don't forget to \"make depend\" at the top of the tree!" -fi diff --git a/lsteamclient/gen_wrapper.py b/lsteamclient/gen_wrapper.py index 833489d2..050f9511 100755 --- a/lsteamclient/gen_wrapper.py +++ b/lsteamclient/gen_wrapper.py @@ -290,10 +290,7 @@ def handle_class(sdkver, classnode): if already_generated: return winname = "win%s" % classnode.spelling - if not winname in generated_c_files: - generated_c_files.append(winname) cppname = "cpp%s_%s" % (classnode.spelling, iface_version) - generated_cpp_files.append(cppname) file_exists = os.path.isfile("%s.c" % winname) cfile = open("%s.c" % winname, "a") @@ -410,7 +407,6 @@ def handle_callback_struct(sdkver, callback, cb_num): file_exists = os.path.isfile(cppname) cppfile = open(cppname, "a") if not file_exists: - generated_cpp_files.append(filename_base) cppfile.write("#include \"steamclient_private.h\"\n") cppfile.write("#include \"steam_defs.h\"\n") cppfile.write("#include \"steamworks_sdk_%s/steam_api.h\"\n" % sdkver) @@ -480,9 +476,6 @@ def handle_callback_maybe(sdkver, callback): #clang.cindex.Config.set_library_file("/usr/lib/llvm-3.8/lib/libclang-3.8.so.1"); -generated_c_files = [] -generated_cpp_files = [] - prog = re.compile("^#define\s*(\w*)\s*\"(.*)\"") for sdkver in sdk_versions: iface_versions = {} @@ -534,10 +527,3 @@ for cb in cb_table.keys(): for struct in cb_table[cb][1]: getapifile.write(" case sizeof(struct win%s): cb_%s(lin_callback, callback); break;\n" % (struct, struct)) getapifile.write(" }\n break;\n") - -m = open("Makefile.in", "a") -for f in generated_c_files: - m.write("\t%s.c \\\n" % f) -m.write("\nCPP_SRCS = \\\n") -for f in generated_cpp_files: - m.write("\t%s.cpp \\\n" % f)