Resumen
We study the evolution of the interstellar and circumstellar media around a massive star (M=40~M_⊙) through radiative-hydrodynamic simulations. The parameters for the stellar wind and ionizing photon rate vary in time depending on the evolutionary phase of the central star. We compare our results with X-ray observations of wind-blown bubbles around Wolf-Rayet stars.